Carp
Carp copied to clipboard
`println*` doesn't work in the REPL
Possibly related to https://github.com/carp-lang/Carp/issues/1222
Exampel session:
鲤 (println* "hello")
鲤
(using the macro from a defn
works)
This is slightly different from for example:
鲤 (defmacro m [] '(IO.println "hello"))
鲤 (m)
=> (IO.println "hello")
...which still isn't quite what you'd want to happen (getting it to evaluate).
@eriksvedang Hi, what other reasons besides #1222 do you think might be causing println* to not work at the REPL? I'm just asking in order to document it here and to give more info if known.
@jgarte I don't know I'm afraid, it's a strange bug.
I think the broader issue is that top-level macros in the REPL expand, but do not evaluate.