Because I grew tired of the isEmpty ifTrue: [ ] all over the place. And ifEmpty has the right semantics for my use cases (like assignment). I do not really care about portability, I am doing Pharo only. Phil On Mon, Oct 31, 2016 at 5:30 PM, jtuchel@objektfabrik.de < jtuchel@objektfabrik.de> wrote:
Am 31.10.16 um 15:59 schrieb phil@highoctane.be:
but you should use myCollection ifEmpty: [ ... ]
interesting. Why do you think so? what if you wanted your code to be portable across Smalltalk dialects?
-- ----------------------------------------------------------------------- Objektfabrik Joachim Tuchel mailto:jtuchel@objektfabrik.de <jtuchel@objektfabrik.de> Fliederweg 1 http://www.objektfabrik.de D-71640 Ludwigsburg http://joachimtuchel.wordpress.com Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1