Hacker News new | past | comments | ask | show | jobs | submit login

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.

Whether 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: