
15 Aug
2007
15 Aug
'07
1:53 p.m.
On Wed, 2007-08-15 at 18:23 +0100, Brian Hulley wrote:
Therefore I propose:
\of alts
which doesn't suffer this problem since the keyword "of" can never follow a '\' in the existing grammar.
Or how about: \case of alts which seems clearer to me. Similarly, the keyword "case" can never follow a '\' in the existing grammar. Mind you, this doesn't seem to save much over \x -> case x of alts It'd be more interesting if we could pattern match against multiple arguments with multiple alternatives like we can in a function definition. I've no idea what syntax for that should look like however. Duncan