8000 Support `(set! js/foo 1)` in CLJS targets · Issue #707 · babashka/sci · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support (set! js/foo 1) in CLJS targets #707

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

Open
borkdude opened this issue Mar 30, 2022 · 0 comments
Open

Support (set! js/foo 1) in CLJS targets #707

borkdude opened this issue Mar 30, 2022 · 0 comments

Comments

@borkdude
Copy link
Collaborator
borkdude commented Mar 30, 2022

This is equivalent to (set! (.-foo goog/global) 1) which might be more idiomatic.

One approach could be to convert (set! js/foo) to (set! (.-foo js) ..) and then process that further. This solution would then also work for other aliases that refer to JS objects.

@borkdude borkdude closed this as completed Jul 8, 2022
@borkdude borkdude reopened this Jul 8, 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
0