#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 jeltsch):
Replying to [comment:63 simonmar]:
> Another alternative is to introduce a new keyword for anonymous multi-
clause multi-argument functions, e.g. `fun`.
Note that when introducing a new construct for functions, we should
introduce an analog construct for arrows. If we introduced a new keyword
`fun` for functions, we would have to introduce another new keyword for
arrows. If we would reuse `\` as in `\ case`, we could reuse `proc` in the
same way (`proc case`). This is not to say that I particularly like the
proposal with `\ case`, but that the syntactic construct that we come up
with should reuse `\`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:64>
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