Shouldn't ifEmpty return self?

Chris Muller chris at funkyobjects.org
Mon Jun 12 17:29:50 UTC 2006


It would probably be more consistent with ifTrue: and ifFalse: for
ifNil: to return nil.

  false ifTrue: [ 'non-nil' ]   -> nil

Chris

--- Ron Teitelbaum <Ron at USMedRec.com> wrote:

> Shouldn't ifEmpty: return self?
> 
>  
> 
> #(1) ifEmpty: [nil]  ->      Returns nil
> 
> #(1) ifNil: [nil].       ->      Returns #(1)
> 
>  
> 
> Ron Teitelbaum
> 
>  
> 
> > 
> 




More information about the Squeak-dev mailing list