[squeak-dev] [Vm-dev] Re: [Pharo-project] About ~= and ~~
bert at freudenbergs.de
Thu Oct 13 11:49:17 UTC 2011
On 12.10.2011, at 22:28, Colin Putney wrote:
> 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 #~~.
Can't really say why but I also prefer "foo == bar ifFalse:" over "foo ~~ bar ifTrue:". And I don't think performance has anything to do with it. To me, "==" just seems ... simpler?
- Bert -
More information about the Vm-dev