[ENH] ifNotEmptyCleans

Marcus Denker denker at iam.unibe.ch
Thu Sep 30 13:13:33 UTC 2004


Am 30.09.2004 um 15:07 schrieb stéphane ducasse:

>> So I think the following would be a good compromise:
>>
>> 1) allow 0- and 1-arg block for ifNotEmpty: and ifNotNil: for 
>> compatibility
> 	and said that people should not use 1-arg and use 2)
>
>> 2) provide ifNotEmptyDo: to be used. (there is already ifNotNilDo:).
>
> This is my inmpression
> because I tried to write some code and the code hurts me
>
> #(3 4 5) ifNotEmpty: [:col| col inspect]
>
>

Ok, I'l put a changeset together that does this. (minus the ifNotNil: 
1-arg code,
I'm too dumb to understand the inlining in the current compiler, so 
this has to wait
till we get a new compiler).

     Marcus




More information about the Squeak-dev mailing list