On Jul 19, 2011, at 12:08 PM, Lukas Renggli wrote:

> I would say for the same reason #isEmpty is not defined on Object, but
> only on Collection. #isEmptyOrNil is the equivalent of
> 
>     obj isNil or: [ obj isEmpty ]

yes this is what I did.
I do not see the point of isEmptyOrNil just because people returns nil or '' 
while a default decent value should be returned. 

> (which i find clearer and) which doesn't work on arbitrary objects either.
> 
> Lukas
> 
> On Tuesday, 19 July 2011, Stéphane Ducasse <[email protected]> wrote:
>> Hi guys
>> 
>> I'm puzzled and probably need food. but why  isEmptyOrNil is not defined in 
>> Object?
>> because right now if a variable is '' or nil or something else I cannot use 
>> it.
>> 
>> Stef
>> 
> 
> -- 
> Lukas Renggli
> www.lukas-renggli.ch
> 


Reply via email to