This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
require doesn't work inside of expressions #489
Comments
You should be comparing this to ClojureScript on the JVM, not Clojure. I think this is by design but I can't check right now. |
It doesn't seem to be a lumo bug. Here's what I was able to reproduce: JVM Clojurescript with
JVM Clojurescript with
However, it doesn't look like a design decision to me, especially the SyntaxError. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm not sure if this is a Lumo or ClojureScript bug or if it's expected behavior:
These all work in Clojure.
I noticed this problem because the editor plugin I'm trying to use wraps the expression to be evaluated causing
require
andns
to not work.https://github.com/mauricioszabo/repl-tooling/blob/f7ed777fb66613df82c3e6783ba3bc159c2803ec/src/repl_tooling/repl_client/clojurescript.cljs#L15-L17.
The text was updated successfully, but these errors were encountered: