[ruby-core:102733] [Ruby master Bug#14824] Endless Range Support in irb
From:
merch-redmine@...
Date:
2021-03-03 23:33:28 UTC
List:
ruby-core #102733
Issue #14824 has been updated by jeremyevans0 (Jeremy Evans). Assignee set to aycabta (aycabta .) Status changed from Open to Assigned I've submitted a pull request to fix this issue: https://github.com/ruby/irb/pull/195 ---------------------------------------- Bug #14824: Endless Range Support in irb https://bugs.ruby-lang.org/issues/14824#change-90736 * Author: jeremyevans0 (Jeremy Evans) * Status: Assigned * Priority: Normal * Assignee: aycabta (aycabta .) * ruby -v: ruby 2.6.0preview2 (2018-05-31 trunk 63539) [x86_64-openbsd] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- `irb` currently doesn't have great support for endless ranges, forcing you to use explicit parentheses around the endless range. Without explicit parentheses, it treats the endless range as a line continuation. ~~~ irb(main):001:0> 1.. irb(main):002:0* ; => 1.. irb(main):003:0> (1..) => 1.. irb(main):004:0> ~~~ Ranges with ends do not require parentheses in `irb`, and endless ranges should have the same behavior. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>