dom-top
dom-top copied to clipboard
Do you accept a patch to make this library work for ClojureScript?
Hey, thanks for a lot for this library. I find the letr and loopr not only useful in clj, but also in cljs. It improves the readability of some code quite a bit. Would you be willing to accept a PR for adding cljs support?
I think it would basically involves these changes:
- make the macros in
src/core.cljfile able to generate cljs-specific code, e.g.IllegalArgumentExceptionfor clj andjs/Errorfor cljs. Also the:via :iteratorspecific code could use the jsSymbol.Iteratorprotocol. - make the
test/core.cljfile into .cljc format, and use reader conditionals to only execute threadpool related code (bounded-pmapetc.) in clj.
Here it is #3 :)