[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Next Version of Lua?
- From: Robert Raschke <rtrlists@...>
- Date: Thu, 11 Jun 2009 09:06:59 +0100
If I remember correctly, Lua optimises tail calls. In my experience, using tail calls for state transitions is way easier to understand and code than using goto's. But YMMV, I guess.
On Wed, Jun 10, 2009 at 11:30 PM, David Given <firstname.lastname@example.org>
goto is particularly handy for implementing complex state machines;
these particularly tend to be machine generated, so readability isn't a
problem (and adding the logic to decompose the block graph into
traditional call graphs is astonishingly non-trivial and, I believe,
downright impossible in places).
Or is your problem, that you've already got lots of machine generated goto-state machines that you'd like to "translate" to Lua?