On 10/19/06, Eric Hodel <drbrain / segment7.net> wrote:
> On Oct 18, 2006, at 12:21 PM, Nikolai Weibull wrote:
> > On 10/18/06, Eric Hodel <drbrain / segment7.net> wrote:
> >> On Oct 18, 2006, at 11:37 AM, Nikolai Weibull wrote:
> >>> On 10/18/06, Eric Hodel <drbrain / segment7.net> wrote:
> >>>> On Oct 18, 2006, at 4:18 AM, dblack / wobblini.net wrote:
> >>>>> lines sounds like it should already be an array to me (like
> >>>>> readlines), and each_line doesn't sound like something that
> >>>>> should be
> >>>>> called without a block.  In general I guess I'm not
> >>>>> understanding the
> >>>>> whole concept of the non-iterator calls to methods like each*.  I
> >>>>> mean, I understand what's happening, but I'm not sure that the
> >>>>> traditional iterator method names make sense if there's no block.
> >>>>
> >>>> Creating a new Array for enumerating the lines of a 50M String
> >>>> is not going to be fun (or fast).
> >>>
> >>> When would you actually do that?
> >>
> >> You trimmed too much context.
> >
> > And you trimmed too much answer.
>
> No, I didn't.

What I meant was that you trimmed too much answer from the answer to
my question.

> > I don't see the question that you're answering, or even if that's
> > the case.
>
> I'm responding to the first sentence of the paragraph immediately
> above my response, the one you trimmed (displayed above with full
> context).  I'm not answering any questions, I'm making observations.

So I guess it really is about how inefficient it would be for #lines
to return an array just for the sake of iteration.  Or something like
that.

  nikolai