Oct. 31, 2016
3:34 p.m.
Le 31/10/2016 à 16:18, Denis Kudriashov a écrit :
2016-10-31 16:11 GMT+01:00 Norbert Hartl <norbert@hartl.name <mailto:norbert@hartl.name>>:
Am 31.10.2016 um 15:59 schrieb phil@highoctane.be <mailto:phil@highoctane.be>:
but you should use myCollection ifEmpty: [ ... ]
Why?
because it shorter :)
And when teaching Pharo, you have to explain: Student - What is ifEmpty: ? Teacher - It is the same as isEmpty ifTrue: [ ... Joke apart, it seems, following Esteban remark, that Pharo is gearing towards making life easier to the experienced Smalltalk developper (make it easier to create a collection-like object) and harder for newcomers ... Thierry