Re:Clojure Scripting on Node.js
by charesjrdan on Friday August 05, 2022 @09:47AM
(#32356068)
I love babashka but always find nbb scripts hard because everything returns a promise which makes the normal REPL workflow tricky.. maybe Iām doing it wrong though
[ Parent
| on HN ]
Re:Clojure Scripting on Node.js
by agentwiggles on Friday August 05, 2022 @10:32AM
(#32356639)
I'm not sure if this applies to nbb, but there's a command line flag for the node repl (`--experimental-repl-await`) which allows you to use await in the repl, allowing you to kind of sidestep the normal annoyance of handling promises.