[Haskell-cafe] Syntax for lambda case proposal could be "\of"

Brian Hulley brianh at metamilk.com
Wed Aug 15 13:23:24 EDT 2007

On http://hackage.haskell.org/trac/haskell-prime/wiki/LambdaCase the 
proposed syntax for lambda case is:

    case of

but this has a really bad downside for interactive editors: it doesn't 
allow one to distinguish between an incomplete construct and a completed 
construct thus removing one opportunity for an editor to alert the user 
(eg by highlighting) that there is something missing in the program text.

Therefore I propose:


which doesn't suffer this problem since the keyword "of" can never 
follow a '\' in the existing grammar.

However I can't edit the H' wiki, so if anyone agrees that the above 
syntax is better please could they add the above to the page.

Thanks, Brian.

More information about the Haskell-Cafe mailing list