rubinius/rubinius-code

A safe navigation operator

majioa opened this issue · 1 comments

Problem

The exception is thrown in the code:

SyntaxError: syntax error, unexpected '.': /home/travis/build/znamenica/bukovina/lib/bukovina/parsers/name.rb:51:42

How to Reproduce

The problem is risen up because of new operator of ruby (mri) 2.3.0 isn't exist in rubinius:

A safe navigation operator (so-called lonely operator) &., which already exists in C#, Groovy, and Swift, is introduced to ease nil handling as obj&.foo. Array#dig and Hash#dig are also added. Note that this behaves like try! of Active Support, which specially handles only nil.

The problem present in both 2.11 and 3.19 versions.

Related from: rubinius/rubinius#3629