From: Yukihiro Matsumoto Date: 2006-10-19T20:47:14+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:36:28 +0900, dblack@wobblini.net writes: |Otherwise -- if lines is an enumerator, rather than some lines -- it |feels to me like Ruby is taking over too much. It's as if I'm being |allowed to say "I want lines from this string", but Ruby knows better: |I don't *really* want lines, even if I think I do. | |That kind of steering away from the semantics of the method names |makes me uncomfortable. If I need an enumerator, I want the language |to give me a way to ask for one clearly; and if I ask for "things", I |want the things. Hmm, maybe the name Enumerator does not make you feel like it's a collection. What if Enumerator is renamed to some other name, for example, DelayedCollection or something? matz.