Yes. And, into the other direction, even in good core methods one often
finds things like
^ dict at: aKey ifAbsent: [nil]
There seems to be a natural confusion between object value and block
value.
What's the problem with that ? Yes, 'nil value' answers nil but 'nil' is
not a block and
parse into collections automatically. You didn't inspectIt for
verifying
your (false) claim, didn't you.
No I didn't! The { } just looked so wrong and like C! I'm used to
#()
which of course doesn't work.
Also, have a look at the implementors of
#caseOf: and #caseOf:otherwise:, they
From: Klaus D. Witzel
On Wed, 09 Aug 2006 21:11:40 +0200, Ron Teitelbaum wrote:
Brian,
Yes I agree it's a great suggestion, although a few changes:
Literal blocks to not parse into collections automatically.
Ron, please: a literal Array is a subclass of Collection and so the blocks