@allObjects: I didn't mean to express any preference with regards to namespaces. My point was just that in a REPL, it doesn't make much sense to execute every new line in its own closure. Because the typical use case of a REPL is to try things out and that most likely relies on executing things in the same namespace. Once you have a complete program, it's a very different story.
I like Gordon's approach to have a REPL at all for communicating with a board, and to interpret source code directly on a board instead of compiling it. I just never liked the syntax of JavaScript. CoffeeScript fixes all that, this is why I code in CoffeeScript. I have an idea how to make the Espruino console work with CoffeeScript, I'm just waiting for my board...
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.
@allObjects: I didn't mean to express any preference with regards to namespaces. My point was just that in a REPL, it doesn't make much sense to execute every new line in its own closure. Because the typical use case of a REPL is to try things out and that most likely relies on executing things in the same namespace. Once you have a complete program, it's a very different story.
I like Gordon's approach to have a REPL at all for communicating with a board, and to interpret source code directly on a board instead of compiling it. I just never liked the syntax of JavaScript. CoffeeScript fixes all that, this is why I code in CoffeeScript. I have an idea how to make the Espruino console work with CoffeeScript, I'm just waiting for my board...