Re:C# is getting “?.”, sometimes called the Safe Navigation ...
by mcv on Thursday February 27, 2014 @05:47AM
(#7311469)
Great news. The ?. operator in Groovy greatly reduces boilerplate code and improves readability and maintainability. No layers of null pointer checks that are all basically the same and getting in the way of what you actually want to do.
And in those cases where you still need specific behaviour based on which object is null, you can still use the . operator with traditional null pointer checks.
And in those cases where you still need specific behaviour based on which object is null, you can still use the . operator with traditional null pointer checks.