Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on Dec 4, 2018
|
parent
|
context
|
favorite
| on:
NULL: The worst mistake of computer science? (2015...
std::optional doesn't do that though, you can deref an empty optional and the result's the same as deref'ing an empty unique_ptr or a null pointer: UB.
basil-rash
on Dec 4, 2018
[–]
But it makes you stop and thing before doing so. Thats the whole point.
masklinn
on Dec 4, 2018
|
parent
[–]
It doesn't do that any more than a pointer
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: