I also have to admit that I find "x && y" easier to understand than
"x&&.y".
But one could argue that the following, which is semantically equivalent to the proposed &&., is harder to understand:
(tmp=x)&&tmp.y
The only question I have is whether it really has enough utility to warrant adding it as a language construct. (And what of the precedent: will |. and ||. be proposed next?)
I tend to still use this kind of code in some scenarios, specially when I work with objects with dynamic interfaces or arguments with different possible object types.
I opened a new feature request to extend the safe navigation operator. https://bugs.ruby-lang.org/issues/12412
I believe that with my proposal the aim of this feature request can also be achieved.
it is a particular situation that can be handled using extra logic.
I don't think there are enough case situations to justify the addition of a new operator to the language.
And by extending the safe navigation operator we will be making use of an already existent language feature.