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

Maybe we should make that an error.




More modern languages have indeed embedded nullability into the type system and will yell at you if you dereference a nullable pointer without a check. This is good.

Retrofitting this into C++ at the language level is impossible. At least without a huge change in priorities from the committee.


Maybe not the Standard, but maybe not impossible to retrofit into:

    -Werror -Wlet-me-stop-you-right-there



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

Search: