[Haskell-cafe] View patterns
Ivan Miljenovic
ivan.miljenovic at gmail.com
Sun Feb 28 17:21:45 EST 2010
On 28 February 2010 05:55, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
> It won't work for arbitrarily complex structures, however. My main point was
> that if you make the constructors abstract and provide functions to query
> the structure, now you can't pattern match against it.
We do, however, have guards which helps reduce the boiler plate
(nested if statements, etc.).
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com
More information about the Haskell-Cafe
mailing list