2009/12/27 Lukas Renggli <[email protected]>: >> Julian: we (stef and I) have something we don't understand. The >> implementation of ifEmpty: is like this in Pharo: >> >> Collection >> ifEmpty: aBlock >> "Evaluate the block if I'm empty" >> >> self isEmpty ifTrue: [ ^aBlock value ] > > In Pharo 1.0rc1 it looks like this: > > Collection>>ifEmpty: aBlock > "Evaluate the block if I'm empty" > > ^ self isEmpty ifTrue: aBlock > > Lukas >
It sounds stupid to return nil if not empty. Should the change in 1.1 be backported ? Nicolas > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
