News for hackers. Stuff that matters.
Re:Pointer Free Programming and the Future of Nim by dan00 on Friday October 20, 2017 @04:16AM (#15514278)
> I’m not a huge fan of the modern C++ style that obsessively avoids null pointers and instead uses object references that are created in an invalid/empty state.

If you've objects with an invalid state then you've nothing won compared to a null pointer.

But the point is to make invalid state not representable as much as possible, then the reasoning of code gets a lot easier, because the invalid state can't distribute throughtout the application.

There are no comments on this comment yet.