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

Not the way it’s constructed, but there are safe patterns e.g. providing a callback which is only called when a value is present.

Whetger or not that’s the way you want to program is a whole different question, but you can get a level of safety from constructs like this you can’t get from a pointer.



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

Search: