On 10/28/05, Ruud H.G. van Tol <[EMAIL PROTECTED]> wrote:
> John Williams:
>
> > ($x *=2) += 1;
>
> Or ($x *= 2) ++;
>
> Maybe the comma should be taught a new trick:
>
> $x *= 2, ++, /= 3;
>
> meaning
>
> $x = (($x * 2) + 1) / 3;
>
> Or RPN-like:
>
> $x #= 2* 1+ 3/;
Oh, gee, why don't we just go with:
(/ 3) . (+ 1) . (* 2) $ x
Probably because it's not helping readability anymore... at all.
I do like section notation. That is, in Haskell:
map (+3) list
Is equivalent to:
map { $_ + 3 } list
However, I don't think we have any syntax left for it. Section
notation greatly improves readability in some specific cases, but it
would mean breaking out a new pair of bracketing operators, because
otherwise we get term/operator confusion (which is probably the case
for Juerd's proposal in general, too).
Because of the syntax issues, it's probably best to keep the status
quo on this one.
Luke