On Thu, Nov 5, 2009 at 10:59 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> We could really use a case statement in which we skip the scrutinee and makeSince this "case" really defines a function, it seems like it would make
> (case of {})' be syntactic sugar for `(\x -> case x of {})'.
> So we could write:
>> myFunc = anotherFunc $ case of
>> Left err -> print err
>> Right msg -> putStrLn msg
> A minor syntactical addition, a big win!
more sense to allow defining anonymous functions by pattern matching.
I.e. instead of "case of", I think it should use "λ", "\", "fn", or ...