[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: proposal: state machine syntax also usable for continue / nested break
- From: Miles Bader <miles@...>
- Date: Sat, 29 Jan 2011 21:39:09 +0900
Florian Weimer <fw@deneb.enyo.de> writes:
>>> In Lua, we favor generic and powerful constructs. Actually, a 'goto'
>>> would be almost perfect.
>>
>> Can we have computed go to? http://en.wikipedia.org/wiki/Goto#Computed_GOTO
>
> Lua supports efficient tail calls, so it already has a computed GOTO.
... which brings to mind "named let" (from scheme) -- that'd be one
answer to the calls for continue... :]
-miles
--
Accordion, n. An instrument in harmony with the sentiments of an assassin.