Felix Meschberger wrote:
> Hi all,
> 
> The RequestPathInfo interface is currently defined to return empty
> strings (or empty array for one method) if no extension, selectors,
> suffix exists in the request URL. This makes checking for existence of
> any of the parts somewhat complicated. On the other hand to build a
> string, you just print the respective method result and don't worry for
> null values.
> 
> I would like to quickly poll on the list, what the general impression is
> on the question: Should null or an empty instance (String, array) be
> returned in the absence of the respective path part ?
> 
> My opinion is: null should be returned.
> 
I'm definitly +1 for null for strings, I'm not sure if that's the best
thing for arrays though, there I would prefer an empty array - but if
I'm the only one, null is fine as well.

Carsten

-- 
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to