2011/10/12 Colin Putney colin@wiresong.com:
On Wed, Oct 12, 2011 at 1:20 PM, Eliot Miranda eliot.miranda@gmail.com wrote:
But why, if it doesn't express intent directly? It's cognitively more difficult. You have to negate to get the intent.
<shrug> to me it's not cognitively more difficult. You have to negate either way, either "not identical" or "if false". I just prefer the negation to be explicit in the big "ifFalse:" rather than implied by the implementation of #~~.
Colin
One of my favourites in the serie is #quo: which found currently fastest way to inline #xor:
ng := self negative == aNumber negative == false.
Nicolas