Are pattern guards obsolete?
Yitz Gale
gale at sefer.org
Tue Dec 12 20:49:11 EST 2006
Donald Bruce Stewart <dons at ...> writes:
> The joy of pattern guards
> reveals once you have more conditions.
Of course, this is not really the joy of
pattern guards. It is the joy of monads,
with perhaps a few character strokes
saved by a confusing overloading of (<-).
But some people do seem to be used to this
notation by now. So perhaps a good compromise
would be to use a different operator for pattern
guards, e.g. (<<-), instead of (<-).
What do you say?
Yitz
More information about the Haskell-prime
mailing list