[squeak-dev] cascading ifTrue:
nicolas cellier
ncellier at ifrance.com
Mon Jan 12 21:34:12 UTC 2009
Lurking at recent IRC http://tunes.org/~nef/logs/squeak/09.01.12,
Why couldn't we write:
^0=1
ifTrue: [self become: 'idiot'];
ifFalse: [Transcript show: 'Math world is safe'];
yourself
Well, why not, we just let cascade dup...
Here is a little changeSet for trivial if: cases...
(as usual MIT etc...)
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CascadeIfTrue-nice.1.cs
Type: text/x-csharp
Size: 3763 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090112/39362371/CascadeIfTrue-nice.1.bin
More information about the Squeak-dev
mailing list
|