From: nobu@... Date: 2015-01-24T01:24:57+00:00 Subject: [ruby-core:67778] [ruby-trunk - Bug #10778] [Feedback] `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)` Issue #10778 has been updated by Nobuyoshi Nakada. Status changed from Open to Feedback Priority changed from Normal to Low ---------------------------------------- Bug #10778: `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)` https://bugs.ruby-lang.org/issues/10778#change-51195 * Author: bug hit * Status: Feedback * Priority: Low * Assignee: * ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- 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)` -- https://bugs.ruby-lang.org/