[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Iterators and the Generic 'for'
- From: Dirk Laurie <dpl@...>
- Date: Wed, 1 Jun 2011 14:11:11 +0200
On Wed, Jun 01, 2011 at 11:49:59AM +0200, Duncan Cross wrote:
>
> In summary, stateless iterators only work at all for certain simple
> kinds of iteration anyway (for example, string.gmatch() returns a
> stateful iterator, it just couldn't work as a stateless one) and the
> difference in performance with stateful iterators is only likely to
> come up if you are using them a *lot*, on the order of hundreds of
> thousands of times.
>
Thanks. You've set my mind at rest.
Dirk