Re:A Lua interpreter written in C#
by munificent on Thursday October 02, 2014 @07:49PM
(#8403744)
> As for the goto being essential: first, FSMs. They cannot be implemented more naturally and efficiently with anything else.
Lua has proper tail calls, which are the natural way to express FSMs there. Programming in Lua actually uses an FSM as an example when explaining the motivation behind tail calls:
Lua has proper tail calls, which are the natural way to express FSMs there. Programming in Lua actually uses an FSM as an example when explaining the motivation behind tail calls:
http://www.lua.org/pil/6.3.html