[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
conclusion!
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!
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] 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
<lhf@tecgraf.puc-rio.br> wrote:
> 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.