Aug. 9, 2010
8:40 p.m.
In squeak, if you send ifEmpty: or ifNotEmpty: to a collection and the condition being tested (emptiness or non-emptiness) is false, then the receiver (the collection) is returned rather than nil. This is more useful and more in line with how ifNil: and ifNotNil: work (which each otherwise return the receiver). See this bug report for more information: http://bugs.squeak.org/view.php?id=6364