From: "jacksonwillis (Jackson Willis)" Date: 2012-04-08T18:45:35+09:00 Subject: [ruby-core:44187] [ruby-trunk - Feature #6270] add "??a" support for "not defined?(a) or a.nil?" Issue #6270 has been updated by jacksonwillis (Jackson Willis). So `??foo' is basically a macro for `not defined?(foo) or foo.nil?'. ---------------------------------------- Feature #6270: add "??a" support for "not defined?(a) or a.nil?" https://bugs.ruby-lang.org/issues/6270#change-25715 Author: jacksonwillis (Jackson Willis) Status: Open Priority: Low Assignee: Category: Target version: 3.0 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. -- http://bugs.ruby-lang.org/