[squeak-dev] Re: [Vm-dev] Re: [Pharo-project] About ~= and ~~

David Ungar ungar at me.com
Wed Oct 12 20:26:50 UTC 2011


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 at gmail.com> wrote:

> 
> 
> 
> On Wed, Oct 12, 2011 at 1:19 PM, Colin Putney <colin at wiresong.com> wrote:
> 
> On Wed, Oct 12, 2011 at 1:16 PM, Eliot Miranda <eliot.miranda at 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
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20111012/3e38e091/attachment.htm


More information about the Vm-dev mailing list