On Jul 30, 2007, at 7:56 PM, Benjamin Schroeder wrote:
> Relatedly, I sometimes find myself wanting to do things like
>
> self (aBoolean
> ifTrue: [someMethod]
> ifFalse: [someOtherMethod])
My usual example of this is
Number abs
[
^self (self < 0 ifTrue: [negated] ifFalse: [yourself])
]
and I've been itching to make it happen for a long time. (There are
people whose opinions I respect, though, who practically regurgitate
their breakfast the instant I show them the above method.
Regardless, pretty soon we'll be able to extend the syntax trivially
to do the above. And while we're at it, anyone for implicit 'self'? ;-)
Cheers,
Ian
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc