Are pattern guards obsolete?
Philippa Cowderoy
flippa at flippac.org
Wed Dec 13 07:55:52 EST 2006
On Wed, 13 Dec 2006, Yitzchak Gale wrote:
> Yitzchak Gale wrote:
> > > 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 (<-).
>
> Philippa Cowderoy wrote:
> > I don't find it any more confusing than the overloading
> > of ->.
>
> You mean that it is used both for lambda abstractions
> and for functional dependencies? True, but those
> are so different that there is no confusion.
>
You missed out case statements.
--
flippa at flippac.org
"My religion says so" explains your beliefs. But it doesn't explain
why I should hold them as well, let alone be restricted by them.
More information about the Haskell-prime
mailing list