4 Feb 20:03
Re: Why is $ right associative instead of left associative?
Taral <taralx <at> gmail.com>
2006-02-04 19:03:32 GMT
2006-02-04 19:03:32 GMT
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
RSS Feed