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

Tomasz Zielonka tomasz.zielonka at gmail.com
Sun Feb 5 10:46:15 EST 2006

On Sun, Feb 05, 2006 at 10:45:50AM -0500, Lennart Augustsson wrote:
> I don't really see what's so much better about writing
> [x1,x2,x3,x4,x5] than x1:x2:x3:x4:x5:[].
> When I've explained lists to beginners I've just found it
> annoying and hard to explain why there are two ways of
> writing lists.  And why only lists have this special syntax.
> 	-- Lennart

But if you remove the [...] syntax, there will be more :'s in
people's code. You are working against yourself here ;-)

Best regards

I am searching for programmers who are good at least in
(Haskell || ML) && (Linux || FreeBSD || math)
for work in Warsaw, Poland

More information about the Haskell-Cafe mailing list