Re:TypeScript Won
by lmm on Wednesday April 27, 2016 @10:54AM
(#11580921)
Structural is worse than nominal. The types are unsound even without "any" because arrays are bivariant. There are no HKTs.
[ Parent
| on HN ]
Structural is not worse than nominal. Nominal types are mostly a lie, and in the case of JS and package managers / module systems like npm / node's, they are a non-starter.
Arrays are no longer bivariant, and haven't been for at least a year. They are still covariant unfortunately.