[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Abolishing the numeric-for
- From: Jonathan Castello <twisolar@...>
- Date: Mon, 24 May 2010 15:09:18 -0700
On Mon, May 24, 2010 at 3:00 PM, Stuart P. Bentley
<stuart@testtrack4.com> wrote:
> (similar to the implementation of tables having an array part,
> as the use of tables).
Eh, I thought that was supposed to be considered an implementation detail?
Anyways, maybe I was a bit hasty with "abolishing" the numeric-for.
Clearly there's more to consider than syntax; I just very much like
the idea of keeping iteration under the same roof, so to speak.
Besides, if __iter works out, anyone can make "for i in 10, 1, -1 do"
work just by setting the number-type's metatable.
~Jonathan