Y
Hacker News
new
|
ask
|
show
|
jobs
by
kristiandupont
870 days ago
Sure, the TS type system is not sound but the idea is not to stop "bad guys", it's to help you realize you are doing something unintended.
2 comments
jwalton
859 days ago
This is very true, but "helping you realize you are doing something unintended" works just as well with a string as with a symbol.
link
presentation
870 days ago
Agreed, for instance in our codebase we just make all type assertions a lint error demanding a justification, as well as flat out banning the any type. But anyone is free to write shoddy TypeScript.
link