Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
yawaramin
· 7y ago · 0 comments
It doesn't have soundness.
Comments
[–]
invaliduser
7y ago
This is by design, and rather well explained in the typescript documentation: the type system is based on structural subtyping, which seems like a good tradeoff to me (but of course, as any design choice, not everyone should agree, and it's fine).
[–]
yawaramin
OP
7y ago
Structural subtyping doesn't imply lack of soundness, OCaml object types have structural subtyping too and OCaml is sound.