From: shevegen@... Date: 2018-06-04T23:03:25+00:00 Subject: [ruby-core:87396] [Ruby trunk Bug#14823] Endless Range Excluding End Issue #14823 has been updated by shevegen (Robert A. Heiler). This boggles my mind. I thought an endless range means infinity, or "open ended". Can we reach the point before infinity - or "endlessity"? This here also tampers with my mind: (1...) == (1..) But in a wicked way ... adding one more '.' should make it be more than just infinity now, should it not. :) > I think the use of ... with an endless range should be a SyntaxError. I agree, if only for keeping my sanity. ---------------------------------------- Bug #14823: Endless Range Excluding End https://bugs.ruby-lang.org/issues/14823#change-72379 * Author: jeremyevans0 (Jeremy Evans) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0preview2 (2018-05-31 trunk 63539) [x86_64-openbsd] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Does it make sense for an endless range to exclude the end? It is currently supported, but the semantics are questionable. ~~~ (1..) # => 1.. (1...) # => 1... (1...) == (1..) # => false ~~~ I think it may be better to only allow `..` for endless ranges, and not allow `...`. I think the use of `...` with an endless range should be a SyntaxError. -- https://bugs.ruby-lang.org/ Unsubscribe: