Hacker News new | ask | show | jobs
by yawaramin 1617 days 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.

1 comments

Rust'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.