4 ms·
Semantics of execution can vary wildly. Node is somewhat usable except for the "REPL is not async context" which leads to annoying tricks, but for example Pytho
by p_l 6y ago
Semantics of execution can vary wildly. Node is somewhat usable except for the "REPL is not async context" which leads to annoying tricks, but for example Python is very non interactive due to code reload behaviour
- pletnes 6y agoPip install ipython and enable autoreload. Problem solved!
- p_l 6y agoTried that, didn't work. Maybe I'm just too used to Lisps (and Ruby, which also handled it better)
- rubber_duck 6y ago>Node is somewhat usable except for the "REPL is not async context" which leads to annoying tricks What do you mean by this ? It's been a while since I was able to use await in REPL, maybe you are referring to something else ?
- p_l 6y agoWas either Node v10 or v12 (I suspect the latter), as it was in december 2019 or so and I tended to use latest stable. Await in REPL definitely didn't work, maybe there's tooling to fix that? Unfortunately Node is not my main, or even third-line tool, but I had to work with Strapi and it was definitely a common issue that I couldn't use "await" on a function.