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

   case of
       alts

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:

   \of
       alts

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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to