pipe

Gary Chambers gazzaguru2 at btinternet.com
Sat Aug 25 18:22:34 UTC 2007


I think the simplicity of operator precedence more than makes up for the
extra parentheses IMHO. Though the cascade operator is a special case, in a
way!

-----Original Message-----
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of Jason
Johnson
Sent: 25 August 2007 7:18 pm
To: The general-purpose Squeak developers list
Subject: Re: pipe


On 8/25/07, Igor Stasenko <siguctua at gmail.com> wrote:
> >
> let me elaborate:
>
> a message1 | message2
>
> is equal to:
>
> a message1 message2
>
> and:
>
> a message1: param | message2: param2
>
> is equeal to:
>
> (a message1: param) message2: param2
>
>
> and as you can see writing code with so-called 'pipes' makes code much 
> cleaner

It is true that it can be nice to avoid using so many parenthesis. This is
why Haskell made the $ operator which does precisely the same thing.

But this issue has nothing to do with the very useful and needed cascade
operator.




More information about the Squeak-dev mailing list