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.clj file able to generate cljs-specific code, e.g. IllegalArgumentException for clj and js/Error for cljs. Also the :via :iterator specific code could use the js Symbol.Iterator protocol.
make the test/core.clj file into .cljc format, and use reader conditionals to only execute threadpool related code (bounded-pmap etc.) in clj.
Hey, thanks for a lot for this library. I find the
letr
andloopr
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:
src/core.clj
file able to generate cljs-specific code, e.g.IllegalArgumentException
for clj andjs/Error
for cljs. Also the:via :iterator
specific code could use the jsSymbol.Iterator
protocol.test/core.clj
file into .cljc format, and use reader conditionals to only execute threadpool related code (bounded-pmap
etc.) in clj.