On 12.10.2011, at 22:28, Colin Putney wrote:
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
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 -