This should be trivial to implement in any interpreter.
It is not easy when the target language does not have "goto".
I wasn't talking about labels. I was talking about if (varName).
so the implementation of
if (x) ...
must in general test if x is one of the false values. It is sufficiently complex that you don't want to generate the tests inline, so an out-of-line function must be called, which is slow.
A very marginal slowdown shouldn't be important for what you're trying to achieve with js2scm. It's more convenient for you to implement this function than for me to try and find all the instances of if (x) and make my code more verbose.
- Maxime