Comment

Comment by aatd86

Hmmh. You seem to be restating what was said above.

A nominal type system still is superseded by a structural type system.

The difference is in how a type is defined. Or what kind of constraints are in entailment said otherwise.

An interface enforces constraints. The difference here is merely that the current implementations only have either one of these type of interfaces. So for the structural type system, all methods are in the global namespace, somehow.

That's all. Because our current languages are this way doesn't mean that the two concepts cannot be reconciliated or that one is just better than the other.

parent aatd86 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton