[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-beginners
Subject: Re: [Haskell-beginners] Are tuples really needed?
From: Dmitry Vyal <akamaus () gmail ! com>
Date: 2012-08-29 6:21:16
Message-ID: 503DB4DC.2070308 () gmail ! com
[Download RAW message or body]
> Wouldn't Haskell be "cleaner" if it had left tuples out, replacing
them with some standard types added (Pair, Triple, ...) and similar fst,
snd functions? Then curry and uncurry wouldn't even be needed if I have
this right.
I guess it's a matter of syntax. Arguably (x,y) is much clearer and
closer to mathematical notation than Pair x y. Don't forget, the same
story for lists, you can represent [a,b,c] with Cons a (Cons b (Cons c
Nil)) but from ancient times of lispers use a syntactic sugar for that.
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic