Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I'm a huge fan of strictNullChecks but it is remarkable how much language features contribute towards making non-nullable types ergonomic.

For sure, that was our experience as well. Without TypeScript's control flow analysis, it would be much less ergonomic to use and would probably lead to a lot of non-null `!` assertions everywhere. When writing correct code, you never notice that control flow analysis is there at all. A desirable feature, though as a result of operating in the background, few know how much TypeScript innovates in this area over other mainstream languages.



Kotlin has this, may not be part of mainstream languages, depending on the definition.




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

Search: