Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TheCoelacanth
on May 10, 2018
|
parent
|
context
|
favorite
| on:
The Logical Disaster of Null
Neither of those is hard to do in C++. The first one is std::optional. The second one is a reference or a non-nullable smart pointer like
https://github.com/dropbox/nn
frabert
on May 11, 2018
[–]
It's easy to do _since less than a year_
jandrese
on May 11, 2018
|
parent
|
next
[–]
And probably not in your compiler yet. Or if it is, you'll blow up on thousands of other compilers when people try to build it themselves.
jcelerier
on May 13, 2018
|
parent
|
prev
[–]
boost::optional has been available since 2003. There's no excuse.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: