[ANSI-Smalltalk] A list of interesting methods, not present in
the ANSI standard
Paolo Bonzini
bonzini at gnu.org
Thu Mar 20 09:08:16 GMT 2008
John Dougan wrote:
>
> Ralph Johnson wrote:
>>> Object>>ifNil:
>>> Object>>ifNil:ifNotNil:
>>> Object>>ifNotNil:
>>> Object>>ifNotNil:ifNil:
>>
> There actually is a minor controversy here as the VisualWorks version of
> these has the block for the ifNotNil: clauses take an optional
> argument.
>
> I personally think the VW approach is bad style and a possible
> efficiency issue.
Why?
The VW approach, by the way, is also present in VisualAge and GNU
Smalltalk. Only Squeak supports *only* a zero-argument #ifNotNil:.
Paolo
More information about the ANSI-Smalltalk
mailing list