[squeak-dev] and:and:and:...

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Jan 1 22:08:27 UTC 2010


Happy new year squeakers!

A question of style to start: I know, nested conditions
    c1 and: [c2 and: [c3]]
are sometimes harder to read than separated
    c1 and: [c2] and: [c3]
I personally don't feel the former as a problem, especially with good
indentations and shout.
The main difference is that the later won't be inlined and will thus
be slower - unless Cog change the deal?

There is another difference in favor of the later: it produces shorter
jump and thus can compile longer methods. But that is a bad
argument... Methods should better be short.

IMO these squeakisms have too low a value and should be deprecated. Thoughts?

Nicolas



More information about the Squeak-dev mailing list