[ruby-core:60670] [ruby-trunk - Feature #9515] IO.each (and perhaps CSV.each)

From: sawadatsuyoshi@...
Date: 2014-02-12 16:17:55 UTC
List: ruby-core #60670
Issue #9515 has been updated by Tsuyoshi Sawada.


Also, `IO.each_line`.

----------------------------------------
Feature #9515: IO.each (and perhaps CSV.each)
https://bugs.ruby-lang.org/issues/9515#change-45098

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
There are pairs `IO.read` and `IO#read`, and `IO.write` and `IO#write`, but when it comes to `IO#each` and `IO#each_line`, their counterpart in the class method is `IO.foreach`. This is hard to remember. I request `IO.each` to be an alias for `IO.foreach`. Perhaps the same thing for CSV.each



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

In This Thread

Prev Next