lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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