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

When cljs.core/PersistentQueue exists, resolve cljs.core.PersistentQueue.EMPTY #856

Closed
borkdude opened this issue Dec 12, 2022 · 0 comments

Comments

@borkdude
Copy link
Collaborator

borkdude commented Dec 12, 2022

It seems CLJS starts resolving from right to left. Let's also do that.

So here it resolves cljs.core.bar and then decides that it should be something like (aget cljs.core.x.bar "baz"), vs. (aget cljs.core.x "bar.baz").

cljs.user=> (def x (clj->js {:bar.baz 1 :bar {:baz 2}}))
#'cljs.user/x
cljs.user=> cljs.user.x.bar
#js {:baz 2}
cljs.user=> cljs.user.x.bar.baz
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant