#4359: Implement lambda-case/lambda-if
---------------------------------+------------------------------------------
Reporter: batterseapower | Owner: igloo
Type: feature request | Status: patch
Priority: high | Milestone: 7.4.1
Component: Compiler | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by simonpj):
Thanks for rebasing. The only issue here is one of syntax. Several
people have expressed anxiety about making so quiet a symbol as "\" into a
layout herald, and have showed that some existing code might break.
So, what to do? One possibility is ''not'' to make "\" into a symbol
introducing ''implicit'' layout, but still to allow ''explicit'' layout
with braces and semi-colons. Thus:
{{{
\ { True -> e1; False -> e2 }
}}}
would be ok. But this would not be ok
{{{
\ True -> e1
False -> e2
}}}
That seems like a reasonable compromise. Using the brace/semicolon stuff
is compatible with the way case expressions work, which is a Good Thing.
Any comments?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:48>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs