[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67776] [ruby-trunk - Bug #10778] [Open] `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)`

From: alxtskrnk@...
Date: 2015-01-24 00:22:58 UTC
List: ruby-core #67776
Issue #10778 has been reported by bug hit.

----------------------------------------
Bug #10778: `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)`
https://bugs.ruby-lang.org/issues/10778

* Author: bug hit
* Status: Open
* Priority: Normal
* 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/

In This Thread

Prev Next