[SPAM] [squeak-dev] code formatting
Julian Fitzell
jfitzell at gmail.com
Mon Jun 28 13:22:20 UTC 2010
On Mon, Jun 28, 2010 at 12:42 PM, Sven Van Caekenberghe <sven at beta9.be> wrote:
> I think on: Error do: [ ] and on: Error do: [ nil ] are the same.
I believe that is not necessarily the case if you're writing portably.
I can't quite recall where the issue comes up, but I remember learning
that you cannot count on the value of an empty block.
Also, in reference to your comment about niladic on:do: blocks, some
platforms do not support that. If you are writing portable code, you
must use a monadic block.
on: Error do: [ :error | nil ]
Julian
More information about the Squeak-dev
mailing list
|