Fork me on GitHub
#squint
<
2022-09-11
>
borkdude11:09:27

If you squint, it's the very beginnings of a REPL ;)

metal 4
😉 1
borkdude16:09:58

I'm also able to dynamically eval some code with import now, but the result is a module...

$ ./node_cli.js repl
:yo
=> (+ 1 2 3)
[Module: null prototype] {  }
=> (prn 1)
1
[Module: null prototype] {  }
I think I need to use some trick to get a value out of that

borkdude16:09:10

kinda worked around it:

$ ./node_cli.js repl
:yo
=> (take 3 (range))
[0,1,2]

borkdude16:09:46

Could be fun to try this locally. Branch: repl