lua-users home
lua-l archive

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


In message <199710302022.SAA22551@ibere.tecgraf.puc-rio.br> lua-l@tecgraf.puc-rio.br writes:
 > On 29 Oct 97 at 15:58, Alan Watson wrote:
 > > If you are going to add "for" loops, then I urge you to restrict
 > > yourself to loops like "for i = 1 to 10 do ... done" and "for i in
 > > table do ... done". 
 > 
 > I agree with Alan. IMHO, for loops in a language like Lua should be 
 > kept simple. I feel the simple "for i = 1 to 10 do... end" would be 
 > much more appropriate than a complicated "for-then-while-do-end" 
 > statement.

This gets my vote too; I want to provide Lua implementations to naive
end-users, the more complex and complete form would, IMHO, merely
confuse them.

--  Mark Ian Barlow                Non-Linear Control Consultants Ltd.
    -----------------------------------------------------------------
    Mark@nlcc.demon.co.uk            Voice / Fax: +44 (0)1207 562 154