4 ms·
> Typescript's structural typing feels like the opposite end of the spectrum from Java's nominal types. Be that as it may, I said nothing about type systems.
by BossingAround 6y ago
> Typescript's structural typing feels like the opposite end of the spectrum from Java's nominal types.
Be that as it may, I said nothing about type systems. I said that TS feels closer to Java than it does to JS. Seeing as JS has no type system, I fail to see your argument.
- reificator 6y ago> Be that as it may, I said nothing about type systems. Typescript is nothing more and nothing less than a language that adds static typing to Javascript. Any discussion about how Typescript changes the feel of Javascript is a discussion about type systems. > Seeing as JS has no type system, I fail to see your argument. Javascript absolutely has a type system. It's not static, and there are lots and lots and lots and frankly too many ways to automatically coerce types, but it definitely has a type system.