4 ms·
I mean if you look at it like that, then yeah sure anything in TypeScript can ultimately be circumvented. Just like `unsafe` in Rust or `unsafePerformIO` in Has
by yawaramin 5y ago
I mean if you look at it like that, then yeah sure anything in TypeScript can ultimately be circumvented. Just like `unsafe` in Rust or `unsafePerformIO` in Haskell.
The point is that we as developers choose to respect the typechecker.
- crabmusket 5y agoRust's `unsafe` can't do anything and nor can `unsafePerformIO`. There seems to be no way to break into #private fields, unless I've missed something. So I think the difference is significant. I'm not saying that TS being a "fancy linter" is a bad thing - I actually think quite the opposite.