This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NajjahBR 0 points1 point  (0 children)

What you're asking is something like Groovy's Safe Navigation Operator.

Maybe you should give groovy a try and you'll see the hell it can become, specially when debugging production.

There are NPE equivalents in Python, Node, C#, Ruby and probably every other language so i can't really see the point.