#4359: Implement lambda-case/lambda-if
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    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):

 Another idea:
  * With `LambdaCase`, make plain "`\`" into a layout herald.
  * Allow multiple arguments as in Simon's comment above.
 Something like `\x y -> x+y` would expand to `\{x y -> x+y}` so existing
 code would mostly be fine, even with the extension on.  But not all
 existing code:
 {{{
    f x $ \y ->
    g y $ \z ->
    blah
 }}}
 but maybe we don't care.  With the extension on you could still use
 explicit curlies:
 {{{
    f x $ \{y ->
    g y $ \{z ->
    blah }}
 }}}

 We don't like lambda-if, so let's not do that yet.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:22>
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

Reply via email to