[nem-en] list operations priorities

Kamil Skalski kamil.skalski at gmail.com
Fri Dec 22 23:17:14 CET 2006


>        foo :: foo_list + bar :: bar_list

Right, I think it should parse as:

foo :: (foo_list + (bar :: bar_list))

so :: should have higher left priority than +'s right priority:
x + y :: z   --->    x + (y :: z)

the opposite case does not make much difference, but a bit of
performance gain with
x :: y + z   --->  x :: (y + z)   being better than   (x :: y) + z


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list