lua-users home
lua-l archive

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


On Tue, Jan 31, 2012 at 8:26 PM, HyperHacker <hyperhacker@gmail.com> wrote:

I thought Lua just added goto because people wanted continue, named
break, etc and they felt goto would satisfy those all at once?

It might be useful for code generation, but without #line you can't do
any serious generation of Lua code anyway...

--
Sent from my toaster.


5.2's goto has been shown to reduce loop overhead by a decent bit when used for the purpose. Whatever the reasons behind adding it, I'm cool with it for that reason alone.