|
On Nov 25, 2013, at 7:24 AM, John Hind <john.hind@zen.co.uk> wrote: 1) Iterating over a linked list (__ipairs can cache the current node) … because ipairs() is implicitly designed for hijacking … using __ipairs(). And this allows the creation of generic code more easily than iterator factories for those who are less experienced in OO (re: many users of Lua). I think both examples are valid. —Tim |