Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String arguments passed to functions are interpreted as symbols #3

Open
livtanong opened this issue Oct 4, 2020 · 1 comment
Open

Comments

@livtanong
Copy link

(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 livtanong changed the title Pass string arguments to functions is interpreted as a symbol String arguments passed to functions is interpreted as a symbol Oct 5, 2020
@livtanong livtanong changed the title String arguments passed to functions is interpreted as a symbol String arguments passed to functions are interpreted as a symbol Oct 5, 2020
@livtanong livtanong changed the title String arguments passed to functions are interpreted as a symbol String arguments passed to functions are interpreted as symbols Oct 5, 2020
@livtanong
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant