@Gordon, absolutely understood, because there is no compiler (if not explicitely said... and if there is or will be, it should behave the same way...)
...add hacks for the common ways people do strange formatting...
me: guilty as charged.
This case though was not a go for strange formatting, it was to fit neatly in the forum width... Even if something is done in the IDE to detect the issue, passing source code in the Modules.addCached(id,source) would still break... and there actually it happened
first.
Remembering the fact that there is no parsing to the end nor elaborate look ahead is good enough for me. Adding more look-ahead is performance counter-productive.
May be over time some edited reference documentation will come into place to address the core differences between Espruino and (the) other JS execution environments.
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.
@Gordon, absolutely understood, because there is no compiler (if not explicitely said... and if there is or will be, it should behave the same way...)
me: guilty as charged.
This case though was not a go for strange formatting, it was to fit neatly in the forum width... Even if something is done in the IDE to detect the issue, passing source code in the Modules.addCached(id,source) would still break... and there actually it happened
first.
Remembering the fact that there is no parsing to the end nor elaborate look ahead is good enough for me. Adding more look-ahead is performance counter-productive.
May be over time some edited reference documentation will come into place to address the core differences between Espruino and (the) other JS execution environments.