News for hackers. Stuff that matters.
Re:Why Maybe Is Better Than Null by pubby on Friday April 19, 2013 @02:20PM (#5577973)
Is that C++? Just use a reference if you want a pointer which asserts it can't be null.
Re:Why Maybe Is Better Than Null by kruffin on Friday April 19, 2013 @02:31PM (#5578019)
It's Java ;P I haven't used C++ in a long time. But you are correct a reference does exactly what he wants.

For anyone who needs to look it up like me: http://en.wikipedia.org/wiki/Reference_(C%2B%2B)

Re:Why Maybe Is Better Than Null by acomar on Friday April 19, 2013 @07:29PM (#5579184)
Except the reference can itself be null, which is still problematic.