[#94657] [Ruby master Feature#16131] Remove $SAFE, taint and trust — naruse@...
Issue #16131 has been reported by naruse (Yui NARUSE).
3 messages
2019/08/29
[ruby-core:94346] [Ruby master Feature#6727] Add Array#rest (with implementation)
From:
mame@...
Date:
2019-08-14 08:51:49 UTC
List:
ruby-core #94346
Issue #6727 has been updated by mame (Yusuke Endoh).
Status changed from Assigned to Feedback
Now we have an endless range which allows us to write `arr[1..]`. It is much less hideous than `arr[1..-1]`, IMO. Do you still want `Array#rest`?
----------------------------------------
Feature #6727: Add Array#rest (with implementation)
https://bugs.ruby-lang.org/issues/6727#change-80749
* Author: duckinator (Marie Markwell)
* Status: Feedback
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version:
----------------------------------------
=begin
I run into many instances where I end up using (({arr[1..-1]})), so I decided to add (({arr.rest})) to make that a bit less hideous.
Branch on github: ((<URL:https://github.com/duckinator/ruby/compare/feature/array_rest>))
Patch: ((<URL:https://github.com/duckinator/ruby/compare/feature/array_rest.patch>))
Diff: ((<URL:https://github.com/duckinator/ruby/compare/feature/array_rest.diff>))
=end
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>