[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: pairs and ipairs: what are they good for? (Was: Re: __ipairs)
- From: Peter Aronoff <telemachus@...>
- Date: Fri, 16 Mar 2018 11:44:31 -0400
John Hind <john.hind@zen.co.uk> wrote:
> pairs and ipairs were never supposed to be syntax, they are one of any
> number of possible implementations of iteration which were intended to be
> extended by users and library authors.
I’m sorry, but just to be clear: are you saying that every module author
should create their own custom iteration? That seems like a huge stretch,
even if we all agree that it’s a strength of Lua that you *can* easily
write your own custom iterators.
P
--
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System