[squeak-dev] Re: [Vm-dev] Re: [Pharo-project] About ~= and ~~
nicolas.cellier.aka.nice at gmail.com
Wed Oct 12 21:17:58 UTC 2011
2011/10/12 Colin Putney <colin at wiresong.com>:
> On Wed, Oct 12, 2011 at 1:20 PM, Eliot Miranda <eliot.miranda at 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 #~~.
One of my favourites in the serie is #quo: which found currently
fastest way to inline #xor:
ng := self negative == aNumber negative == false.
More information about the Vm-dev