TypeScript is not typed fwiw, e.g. `as any`.
So because it has a feature to disable typing it is not typed? Would you say the same thing for any language that has similar "unsafe" flags, like rust or basically all the others?
| Static | Dynamic
-------+--------+---------
Strong | Rust | (lisp?)
Weak | TS | JS
TypeScript bolts on a Static type checker onto JS, and the types are erased before running in a real JS runtime. At runtime the types can change out from underneath you for many local and nonlocal reasons. This is simply impossible in Rust in general.Rust unsafe features don't allow you to override type safety, but you can directly manipulate raw pointers if you're so inclined.
TypeScript really does let you bypass the type checking entirely and drop down to just JavaScript.
I'm not sure how that makes typescript "not typed".
Many languages do have sound type systems, and I would argue we should prefer those.
This is reasonable, given that untyped data received at a system boundary is going to need some kind of type checking no matter what the language or type system; I'm not sure that can even be fairly called a 'problem'. But it also would leave the putative line of argument rather footless, in that blaming Typescript for something Rust also requires is incoherent.
Perhaps the originator of the claim under discussion will clarify his meaning.