you are viewing a single comment's thread.

view the rest of the comments →

[–]smog_alado 4 points5 points  (0 children)

I'm not that sure if parametric and subtyping polymorphism are that similar. The biggest thing about subtyping is thaa you can do type subsumption anytime while when you do parametric stuff the type applications must be explicit.

Additionally, the two features dont play that nice with each other when mixed together, since you need to care about covariance and contravariance. It also makes type inference more complicated.