ijanet-mode icon indicating copy to clipboard operation
ijanet-mode copied to clipboard

String arguments passed to functions are interpreted as symbols

Open livtanong opened this issue 5 years ago • 1 comments

(defn foo [s]
  (print s))

(defn bar []
  (foo "derp"))

If I evaluate the above, I get a compile error: unknown symbol derp on line 9, column 14 while compiling repl

This does not happen if the passed value is a number.

livtanong avatar Oct 04 '20 06:10 livtanong

It seems the problem only manifests when you eval the sexp. Evaluating the entire buffer works fine.

livtanong avatar Oct 13 '20 10:10 livtanong