Le 31/10/2016 à 16:18, Denis Kudriashov a écrit :

2016-10-31 16:11 GMT+01:00 Norbert Hartl <norb...@hartl.name
<mailto:norb...@hartl.name>>:

    Am 31.10.2016 um 15:59 schrieb p...@highoctane.be
    <mailto:p...@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

Reply via email to