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

interop on local in CLJS #779

Open
borkdude opened this issue Jul 19, 2022 · 0 comments
Open

interop on local in CLJS #779

borkdude opened this issue Jul 19, 2022 · 0 comments

Comments

@borkdude
Copy link
Collaborator

borkdude commented Jul 19, 2022

This works in self-hosted CLJS:

(let [x #js {:foo #js {:bar 1}} y x.foo.bar] y)

Not sure if it is officially supported.

This also works:

user=> (def x #js {:foo #js {:bar 1}})
#'user/x
user=> x.foo.bar
1

That already seems to work in SCI.

@borkdude borkdude changed the title interop on local and var in CLJS interop on local in CLJS Jul 19, 2022
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