#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 mikhail.vorozhtsov):
Replying to [comment:50 simonpj]:
> Concerning (1) I don't understand. If you don't put a curly brace,
everything would happen just like now... so `mask` would be fine.
Yes. I was referring to the syntax implemented in the patch.
> Does anyone else have other ''concrete'' proposals? If so, let's hear
them.
Let me bug you one last time. Please consider adding \case expressions
''in addition'' to multi-clause lambdas. Сase expressions are at the
fingertips of every haskeller, not having their "anonymous" version will
(and in my case already is) lead to constant stumbling (due to different
pattern syntax). Besides, we already have that sort of duplication for
one-argument named functions ({{{fun P = ...}}} vs {{{fun x = case x of P
-> ...}}}).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:51>
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