lua-users home
lua-l archive

Re: proposal: state machine syntax also usable for continue / nested break

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Florian Weimer schrieb: [* Miles Bader
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... :]
 
Huh. I didn't realize that this was part of Scheme. I thought that
it was a _javascript_ innovation, where function expressions can be
named
Hi Florian,

You might like Douglas Crockford's spirited comparison of Scheme and _javascript_,

"The Little _javascript_er" at http://www.crockford.com/_javascript_/little.html

Henning

AltStyle によって変換されたページ (->オリジナル) /