Re:The Logical Disaster of Null
by TheCoelacanth on Thursday May 10, 2018 @10:34AM
(#17039166)
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
[ Parent
| on HN ]
It's easy to do _since less than a year_
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.