Re:TypeScript’s quirks: How inconsistencies make the languag...
by jolux on Saturday February 01, 2020 @02:01AM
(#22209170)
Java interfaces are not structurally typed, are they?
[ Parent
| on HN ]
Re:TypeScript’s quirks: How inconsistencies make the languag...
by garethrowlands on Saturday February 01, 2020 @07:57AM
(#22210261)
No but it's the closest available. Two classes C1 and C2 that both implement interfaces I1 and I2 can be said to have a common structure. That is, if they both implement I1 and I2 then they have that structure in common.