|
|
|
|
|
by winwang
483 days ago
|
|
Mildly disagree with your first statement. Well, I mostly agree that it's not particularly helpful for newcomers. As a 0-tuple, it becomes a specific case of a more general concept -- there is some beauty/usefulness in not having to have a "special" construct for "Unit", which is (in a sense) not just "any" unit type.
It also "justifies" the syntax of `()` and notes that it is a product type, all the while fitting into the idea of the "cardinality" of `(a1, a2, ..., an)` being the product of the cardinalities of each of its type params. |
|