Project

General

Profile

Feature #6270

add "??a" support for "not defined?(a) or a.nil?"

Added by jacksonwillis (Jackson Willis) almost 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:44184]

Description

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.

Also available in: Atom PDF