From: Yukihiro Matsumoto Date: 2006-10-19T20:23:32+09:00 Subject: Re: String not enumerable, what about IO? (was Re: Symbol < String in Ruby > 1.8) Hi, In message "Re: String not enumerable, what about IO? (was Re: Symbol < String in Ruby > 1.8)" on Thu, 19 Oct 2006 20:16:54 +0900, dblack@wobblini.net writes: |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. The reason behind no to #2 is that readlines returns an array, right? Then, what if I change readlines to return Enumerator? matz.