5 ms·
All valid javascript programs are valid typescript programs, so typescript necessarily must have structural type, it cannot have nominal type without breaking c
by sapling-ginger 2y ago
All valid javascript programs are valid typescript programs, so typescript necessarily must have structural type, it cannot have nominal type without breaking compatibility with javascript, which is a hard requirement.
- RussianCow 2y agoCorrect. My comment was about programming languages in general and not specific to TypeScript. :)