[Haskell-cafe] Re: Lambda-case / lambda-if

Gregory Crosswhite gcross at phys.washington.edu
Wed Oct 6 16:36:56 EDT 2010


  On 10/06/10 13:32, steffen wrote:
>>> A slightly different suggestion from Simon PJ and myself (we agreed on
>>> something syntax-related :-) is the following:
>>>   \case 1 ->  f
>>>         2 ->  g
>>> ...
>>>   \case { 1 ->  f; 2 ->  g }
>> +1
>>
>> I like this because it has exactly the same properties of Max's
>> case-of, but is shorter and still reads with sense.
> +1
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
+1...million

Cheers,
Greg


More information about the Haskell-Cafe mailing list