Shouldn't ifEmpty return self?
Philippe Marschall
philippe.marschall at gmail.com
Mon Jun 12 06:47:10 UTC 2006
2006/6/12, Ron Teitelbaum <Ron at usmedrec.com>:
>
>
>
>
> Shouldn't ifEmpty: return self?
>
>
>
> #(1) ifEmpty: [nil] -> Returns nil
>
> #(1) ifNil: [nil]. -> Returns #(1)
>
>
>
> Ron Teitelbaum
false ifTrue: [ true ] -> nil
So returning nil for #ifEmpty: is quite consitent in my eyes.
Philippe
More information about the Squeak-dev
mailing list
|