[Haskell-cafe] Why is $ right associative instead of left associative?

Taral taralx at gmail.com
Sat Feb 4 14:03:32 EST 2006


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


More information about the Haskell-Cafe mailing list