-
Notifications
You must be signed in to change notification settings - Fork 28
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
We have CLJS support! #56
base: release
Are you sure you want to change the base?
Conversation
- Tests do not pass yet because .clj, not .cljc
- All tests now pass, both CLJ and CLJS. - However, do check the (very few) things marked “FIXME” and address them as you see fit. They involve `eval` (CLJ only), a reflection test (CLJ only), a cljs.test multimethod which is only available from CLJ, and platform-specific stack traces in CLJS. None of these things alter the functionality of Slingshot.
- In order to do this, had to drop 1.4, 1.5, 1.6 support. We keep 1.7 and 1.8 support. .cljx is an option if we need to have 1.4-1.6 support still.
This fixes something that appeared when I tried to use the CLJS version of Slingshot in a project — namely, that slingshot.support referring to its own macro apparently sometimes causes a problem (though it doesn’t always). Thus, the offending macros have been moved to slingshot.util.
Hi @scgilardi, did you ever get a chance to look this over? Do you think it's a good idea? |
(try+
(throw (ex-info "foobar" {}))
(catch js/Error e
(println "foobar caught")) ; <------------- is not printed |
Looks interesting! I'll go over it in more detail and write again. |
@scgilardi Much time has passed since then. Apparently we won't see this functionality anymore. |
them as you see fit. They involve
eval
(CLJ only), a reflection test(CLJ only), a cljs.test multimethod which is only available from CLJ,
and platform-specific stack traces in CLJS. None of these things alter
the functionality of Slingshot.
To those who want this PR on clojars, it's available as
[alexandergunnarson/slingshot "0.14"]
.