The first solution seems straightforward to me. It would make using the REPL to test value updates very convenient.
@ddm started
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.
The first solution seems straightforward to me. It would make using the REPL to test value updates very convenient.