lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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