add "??a" support for "not defined?(a) or a.nil?"
It would work like this:
??foo #=> nil foo = nil ??foo #=> nil foo = 3 ??foo #=> true
Not sure if this would be useful, just a suggestion.
#2 [ruby-core:44195] Updated by drbrain (Eric Hodel) almost 5 years ago
This syntax seems too similar to the ?a character string syntax
Currently ?a returns "a", so how would the parsing of this expression change:
Which currently returns "a", or:
Which currently parses the same as: