Are pattern guards obsolete?
Iavor Diatchki
iavor.diatchki at gmail.com
Wed Dec 13 12:33:30 EST 2006
Hi,
I am not clear why you think the current notation is confusing...
Could you give a concrete example? I am thinking of something along
the lines: based on how "<-" works in list comprehensions and the do
notation, I would expect that pattern guards do XXX but instead, they
confusingly do YYY. I think that this will help us keep the
discussion concrete.
-Iavor
On 12/13/06, Yitzchak Gale <gale at sefer.org> wrote:
> Philippa Cowderoy wrote:
> > This is what I get for replying straight away!
>
> Oh, no, I'm happy that you responded quickly.
>
> > I think my point is that I'm not aware of many people
> > who actually think this is a problem or get confused.
>
> Well, I don't mean that this is something that experienced
> Haskell programmers will stop and scratch their heads
> over.
>
> But the more of these kinds of inconsistencies you have,
> the worse it is for a programming language. The effect
> is cumulative. When there are too many of them, they make
> the language feel heavy, complex, and inelegant. They
> increase the number of careless errors. They put
> off beginners.
>
> Regards,
> Yitz
> _______________________________________________
> Haskell-prime mailing list
> Haskell-prime at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-prime
>
More information about the Haskell-prime
mailing list