[Haskell-cafe] Is () a 0-length tuple?
ekirpichov at gmail.com
Sat Nov 7 14:09:32 EST 2009
2009/11/7 Pasqualino "Titto" Assini <tittoassini at gmail.com>:
> The syntax is similar, but what else is?
> Isn't () the same thing? The only value of the unary type?
No, () has two values: () and undefined (t.i., _|_).
> 2009/11/6 John Dorsey <haskell at colquitt.org>:
>>> In what sense () is a 0-length tuple?
>> In what sense isn't it?
>> Data.Tuple is much to narrow to be of any use here. () is in at least most,
>> if not all, of the type classes that tuples are in. The syntax is
>> strikingly similar.
>> If you ask me, it walks/quacks/smells like a duck, so it's a duck.
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
> Pasqualino "Titto" Assini, Ph.D.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
Web IR developer, market.yandex.ru
More information about the Haskell-Cafe