[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: '__iter', yet again!
- From: "John Hind" <john.hind@...>
- Date: Wed, 16 Dec 2009 17:38:19 -0000
Whereas '__iter' would be taking this historical evolution to its logical
Generic For undoubtedly was a significant complication of the language, much
more significant than "__iter" would be.
But I would be interested to understand the reasoning behind implementing
Generic For as it seems to be subject to the same criticisms you are now
levelling at "__iter" - the old way was simpler and required no language
innovations, so why was it deprecated?
I am in two minds between table.foreach and Generic For with __iter, but I
find Generic For without __iter to be a rather half-assed implementation!
[mailto:firstname.lastname@example.org] On Behalf Of steve donovan
Sent: 16 December 2009 16:44
To: Lua list
Subject: Re: '__iter', yet again!
On Wed, Dec 16, 2009 at 6:40 PM, Luiz Henrique de Figueiredo
> We already have table.foreach and table.foreachi, but they are deprecated.
Yes, it would be reversing the historical evolution of the language.
These functions are easy to define efficiently anyway.