Has anyone implemented a null propagation operator in C++, similar to that used in functional languages? I'm thinking of some clever template solution, possibly akin to the propagating behavior of operator->.
By request, a bit of fleshing out...
Let's suppose we have a chain of objects from a graph, like
if( !foo )
if( !foo->bar )
foo?->bar?->baz // imaginary null-propagation syntax
At this stage in your design it might be a radical departure, but perhaps consider using the Null Object Pattern. Then you don't need any null checks at all.