[GHC] #4359: Implement lambda-case/lambda-if
GHC
cvs-ghc at haskell.org
Tue Oct 5 08:33:11 EDT 2010
#4359: Implement lambda-case/lambda-if
---------------------------------+------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by simonmar):
hmm, on second thoughts I revise that to +0 for lambda-case and lambda-if.
They save a constant number of tokens (4), but the downside is that we
have to adjust our mental parsers/typecheckers to recognise `if then` and
`case of` as a lambda, and I'm not sure the gain in brevity is worth the
loss of readability. (note that multi-way if doesn't suffer from this
problem, it's just an abbreviation).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list