3 ms·
> 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
by munificent 12y ago
> 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:
http://www.lua.org/pil/6.3.html http://www.lua.org/pil/6.3.html