[Haskell-cafe] Lambda-case / lambda-if
Richard O'Keefe
ok at cs.otago.ac.nz
Tue Oct 5 20:02:21 EDT 2010
On 6/10/2010, at 5:56 AM, Brandon S Allbery KF8NH wrote:
>> In order to be consistent with current case, maybe in layout mode:
>>
>> \1 -> f
>> 2 -> g
>>
>> and in non-layout mode
>>
>> \{1 -> f; 2 -> g}
>
> +1; likewise for consistency it should support guards (which would preclude
> using | the way Richard suggested, and goes along with the "lambda-case" thing).
It's not that I particularly wanted "|".
Just that I thought some sort of visual mark would be a good idea.
Forget I ever suggested it.
More information about the Haskell-Cafe
mailing list