Project

General

Profile

Actions

Bug #10778

closed

`defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)`

Added by bughit (bug hit) over 9 years ago. Updated over 4 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
[ruby-core:67776]

Description

defined? is an operator not a method, its operand is defined as the expressions to its right.

It does not even require a space: defined?a

So defined?(a) should be equivalent to defined? (a) instead of (defined? a)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0