Project

General

Profile

Actions

Feature #6270

closed

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

Added by jacksonwillis (Jackson Willis) about 12 years ago. Updated about 12 years ago.

Status:
Rejected
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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0