
7 May
2001
7 May
'01
9:42 a.m.
Simon Marlow wrote:
Well, simply extending the Haskell syntax to allow
\ p11 .. p1n -> e1 .. pm1 .. pmn -> em
(with appropriate layout) should be ok, but I haven't tried
it. Guarded
right-hand-sides could be allowed too.
Introducing layout after \ will break a lot of programs. For example, consider the way >>= is often formatted:
f >>= \x -> g >>= \y -> ...
I guess that's why Marcin suggested using a new keyword.
Ah yes, I forgot that lambda expressions are often used like that (actually, I think that this use of the syntax is horrible, but that's just MHO). Cheers, Simon