Y
Hacker News
new
|
ask
|
show
|
jobs
by
silentbicycle
5731 days ago
You can build a FSM using tail calls. (Lua has TCO.) It's really common to do this in Erlang, too.
It's also possible to stream Lua functions, though it's a bit tricky to do with closures.