Taral | 4 Feb 20:03
Picon

Re: Why is $ right associative instead of left associative?

On 2/4/06, Brian Hulley <brianh <at> metamilk.com> wrote:
> Does anyone know why this strange associativity was chosen?

I think it's very natural. Everything after the $, including other $
expressions, is applied to the stuff before the $. This saves me from
a lot of nested parentheses.

It seems to be that the left-associative version of $ does not
decrease nesting level so effectively.

--
Taral <taralx <at> gmail.com>
"Computer science is no more about computers than astronomy is about
telescopes."
    -- Edsger Dijkstra

Gmane