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

The ?.let syntax is terrible. I don’t see how anyone thinks it’s better than doing a normal if != null check.


Feels like a lot of people like making dealing with null as complicated as possible.


The only time I ever use it is when the if != null check doesn’t work (aforementioned smart cast failure) and I don’t feel like creating a local var to fix it.




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

Search: