Maybe we need an if: isAnother: method in Object....

foo if: bar isAnother: [...]

:)

- David (from iPad, typos likely)

On Oct 12, 2011, at 1:20 PM, Eliot Miranda <eliot.miranda@gmail.com> wrote:



On Wed, Oct 12, 2011 at 1:19 PM, Colin Putney <colin@wiresong.com> wrote:

On Wed, Oct 12, 2011 at 1:16 PM, Eliot Miranda <eliot.miranda@gmail.com> wrote:
> People avoid it because of performance.  But I much prefer foo ~~ bar ifTrue: than foo == bar ifFalse:.  So I suspect/hope dynamic frequency will grow as people find its not such a performance issue any more.

Well, no accounting for taste, I guess. I'd avoid it because I much
prefer foo == bar iFalse:

But why, if it doesn't express intent directly?  It's cognitively more difficult.  You have to negate to get the intent.
 

Colin



--
best,
Eliot