[Haskell] Views in Haskell

Dinko Tenev dinko.tenev at gmail.com
Wed Jan 24 05:02:48 EST 2007


On 1/24/07, Brian Hulley <brianh at metamilk.com> wrote:
>
> A possible syntax could represent the
> value being matched explicitly, say using ? to represent the value
> currently
> being matched, then the pattern could be written as an equation:
>
>     f (prodSize ? = Small) = ...
>     f (prodSize ? = Medium) = ...
>     f (prodSize ? = Big) = ...


...or maybe (Small = prodSize ?), etc., to be consistent with let bindings?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-prime/attachments/20070124/b4072d79/attachment.htm


More information about the Haskell-prime mailing list