[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68486] [Ruby trunk - Feature #10958] [Open] remove "initial_state" argument of Enumerable#{slice_before, chunk}

From: akr@...
Date: 2015-03-10 12:49:30 UTC
List: ruby-core #68486
Issue #10958 has been reported by Akira Tanaka.

----------------------------------------
Feature #10958: remove "initial_state" argument of Enumerable#{slice_before,chunk}
https://bugs.ruby-lang.org/issues/10958

* Author: Akira Tanaka
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
I'd like to remove "initial_state" argument of Enumerable#{slice_before,chunk}.

I think a state management can be implemented using local variable without the argument.
So I'd like to remove it because it is too complex and
not consistent with Enumerable#{slice_when,slice_after} which doesn't have the argument.

Note that I added deprecated warning since Ruby 2.2.
It seems no one complained the warning until now.


---Files--------------------------------
chunk_slice_before_remove_initial_state.patch (8 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next