[Haskell-cafe] Re: Equations for `foo' have different numbers of arguments

John Van Enk vanenkj at gmail.com
Tue Mar 24 11:33:05 EDT 2009


Yes, but this seems to have terrifying implications...

On Tue, Mar 24, 2009 at 11:25 AM, Martijn van Steenbergen <
martijn at van.steenbergen.nl> wrote:

> Achim Schneider wrote:
>
>> The
>> other might be implementation issues: it makes pattern match rules
>> more complex.
>>
>
> But only marginally, right?
>
> f A B = biz
> f B = bar
> f = bam
>
> could be trivially rewritten to:
>
> f A B = biz
> f B y = bar y
> f x y = bam x y
>
> Martijn.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
/jve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090324/793cc26a/attachment-0001.htm


More information about the Haskell-Cafe mailing list