[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: proposal for change in for protocol
- From: Miles Bader <miles@...>
- Date: Tue, 03 Apr 2012 22:47:52 +0900
Duncan Cross <duncan.cross@gmail.com> writes:
> That seems like a bad example - in my experience, the index value in
> an ipairs loop is useful more often than not.
I dunno, I seem to ignore the key in awful lot of for loops...
Given the prevalence of "iterate over the values only" in many
languages, it is a bit odd that Lua doesn't have it.
-Miles
--
Egotist, n. A person of low taste, more interested in himself than in me.