From: "matz (Yukihiro Matsumoto)" Date: 2012-04-09T08:23:13+09:00 Subject: [ruby-core:44204] [ruby-trunk - Feature #6270][Rejected] add "??a" support for "not defined?(a) or a.nil?" Issue #6270 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Rejected As Eric pointed out, it's conflicting existing syntax. I don't reject the basic idea (though I am excited), so try again with new syntax if you really want this. Matz. ---------------------------------------- Feature #6270: add "??a" support for "not defined?(a) or a.nil?" https://bugs.ruby-lang.org/issues/6270#change-25731 Author: jacksonwillis (Jackson Willis) Status: Rejected 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/