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

The operator is much better with nullable types because you're less likely to add it everywhere defensively.

Hopefully tsc or eslint will actually warn when you use optional chaining on a non-nullable receiver.



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

Search: