Conversation

Much of the trouble with trying to decide between structural and nominal typing is that the former describes what something *is*, and the latter describes what something *means*. Both have tradeoffs, and it seems fundamentally impossible to get the pros of both without the cons.
4
42
Structural typing dramatically increases reuse and composition. The Clojure folks often take this to an extreme, and it makes some things seem effortless. But nominal typing increases safety and makes it possible to reason about things in a more abstract way.
1
16
It seems that one of the principal advantages of fancier type systems is that they allow structures to be more precisely described, helping to get more of the benefits of each without giving up so much. But even in such languages, it’s hard (impossible?) to completely escape.
1
8
Would also be interested to whether GADTs and dependent records could be made to be row polymorphic. Seems like that would be challenging. Don't think I've seen any treatments anywhere. 🤔
1
3
Show replies