Carp icon indicating copy to clipboard operation
Carp copied to clipboard

`println*` doesn't work in the REPL

Open eriksvedang opened this issue 3 years ago • 3 comments

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 avatar Sep 09 '21 07:09 eriksvedang

@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 avatar Dec 05 '22 14:12 jgarte

@jgarte I don't know I'm afraid, it's a strange bug.

eriksvedang avatar Dec 07 '22 09:12 eriksvedang

I think the broader issue is that top-level macros in the REPL expand, but do not evaluate.

hellerve avatar Dec 07 '22 12:12 hellerve