SerialDev / ijanet-mode

Interactive Janet mode
25 stars 7 forks source link

String arguments passed to functions are interpreted as symbols #3

Open livtanong opened 4 years ago

livtanong commented 4 years ago
(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 commented 4 years ago

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