Hi -- On Thu, 19 Oct 2006, Jim Weirich wrote: > Rick DeNatale wrote: >> On the other hand, I too tend to think that lines (without a block) >> really should return an array of lines, and chars and bytes should >> follow suit. > > I think I disagree. If lines without a block returns an array, then using > inject, collect, or any other enumerable method applied line by line would > always work on an intermediate array. That seems like unnecessary > overhead. There are two separate questions involved, though: 1. Should there be a method to enumerate over the lines without creating an intermediate array? 2. Should that method be called "lines"? I would say yes to #1, and no to #2. David -- David A. Black | dblack / wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org