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 ]
(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