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

Port to CLJC? #30

Open
raspasov opened this issue May 6, 2021 · 2 comments
Open

Port to CLJC? #30

raspasov opened this issue May 6, 2021 · 2 comments

Comments

@raspasov
Copy link

raspasov commented May 6, 2021

I believe it should be fairly easy to port this library to a CLJC file (I did a quick proof of concept locally) and make it compatible with Clojure(Script). Any interest in a pull request for this? If yes, I can make one.

@Quezion
Copy link

Quezion commented May 6, 2021

This is pretty much my favorite Clojure library of all time, so I'm definitely interested! If you don't end up finishing this then please push your branch progress somewhere, I might need to do this task myself someday 🙂

@raspasov
Copy link
Author

raspasov commented May 7, 2021

Here's a first try: https://github.com/raspasov/swiss-arrows

One thing that I could not figure out was the (defnilsafe ...) macro https://github.com/raspasov/swiss-arrows/blob/master/src/swiss/arrows.cljc#L118 . It's a macro which returns a macro which defines some-<> and some-<>> . I think it causes problems with CLJS compilation. Other macros should work.

Added deps.edn as well (you can try via a :sha) .

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

2 participants