Hacker News new | past | comments | ask | show | jobs | submit login

There is a big issue with “suppressing one off instances”: the truth is you’re either fully bought in or you’re not. If you have “any” types or ignores littering your code base, you don’t have type safety, and at that point, why even have typescript? There’s not _really_ any such thing as being “mostly” type safe. You could argue that “this part of my code is type safe” but if it interacts with any other part of your code that isn’t, then what’s the win?



Your code is going to run on a computer somewhere. It will never be completely safe. And many kinds of error will escape even full detailed types.

Mostly safe is useful. The more you tighten types, the fewer errors can occur.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: