[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work3) now available
- From: Javier Guerra Giraldez <javier@...>
- Date: Wed, 19 May 2010 15:28:15 -0500
On Wed, May 19, 2010 at 3:25 PM, Wesley Smith <wesley.hoke@gmail.com> wrote:
>> for i in function(s, v) if v ~= 100 then return v + 1 end end, nil, 0 do
>> print("I would never use numeric for again")
>> end
>
> Seriously :) If that's what numeric for looks like I might as well be
> programming in a purely functional language.
that's exactly what python does:
for x in range(100):
print ("no numeric for, and we like it!")
--
Javier