#4359: Implement lambda-case/lambda-if
-------------------------------+--------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.6.1
Component: Compiler | Version: 7.1
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Comment(by simonmar):
Rather than a single new proposal, I think what would be most useful would
be a summary of the previous proposals and their pros and cons, so that we
don't have to rediscover all this.
e.g. we previously didn't like `\case` because we wanted a way to have
multiple arguments too: lambda currently allows multiple arguments, and
`\Just x ->` is a function of two arguments, whereas `\case Just x ->` is
a function of one argument. I'm not necessarily discounting the idea on
this basis, but it is arguably an inconsistency.
Another alternative is to introduce a new keyword for anonymous multi-
clause multi-argument functions, e.g. `fun`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:63>
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