Yep, that's a definite option, thanks—does Espruino optimise parameterless functions called in place into low-overhead control flow? Is treating return as a value-carrying nonlocal exit the expected idiom?
((()=>{ … return;})()); is unquestionably uglier than foo: … break foo; though! :) )
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yep, that's a definite option, thanks—does Espruino optimise parameterless functions called in place into low-overhead control flow? Is treating
return
as a value-carrying nonlocal exit the expected idiom?(
(()=>{ … return;})());
is unquestionably uglier thanfoo: … break foo;
though! :) )