-
Notifications
You must be signed in to change notification settings - Fork 108
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
Translated loom.graph to CLJS #76
Conversation
changed to #queue [], pprinted new function implementations in loom.graph, better formatting |
Any status on this PR? I'm starting a cljs app where I would love to use loom. My use case is hopefully simple enough to use stuartsierra/dependency, but it would be very cool to have loom as an option. |
Hi @Hendekagon, would you mind cleaning up this PR and reverting any changes that are not intended to be part of this? Also, if you could please merge the conflicts, that'd be great. Thanks! |
hi, hopefully I caught all the conflicts & this passes all the tests now |
Thanks very much, @Hendekagon. I'm reviewing all pending pull requests and issues, and this one is at the top of the list. |
Hi, @Hendekagon, and thanks again for putting the work into adding this support. My apologies that it's taken me so long to sit down and give this PR a thorough going-over. I have a couple of requests/questions:
|
hi, this PR is from a fork of an earlier version of loom before the protocols were changed to include the starred fns, so it's now out-of-date |
Any hope of this being resolved? |
problem is, that the implementations of starred functions like successors* include single-arity definitions that aren't in the protocols |
I'd love to get this merged, if someone wants to tackle updating the PR to match the current protocols. I'll get to it at some point, but if someone has free cycles now, it would be a great contribution. |
I'm happy to fix it up, but the way it's written atm won't work with (defrecord) unless we add the other arity fn definitions of starred fns to the protocols, afaiu ? |
Hey guys. Thanks. Rafik |
Superceded by #91. |
hi, bit of a messy pull request this one (file mode changes, don't know how that happened) but please review loom.graph -- I translated the code to CLJS by changing (defrecord.. & (extend... to just (defrecord using a horrid macro. I don't expect you to accept this PR without some discussion as the code is messy, but it appears to work. I also added various CLJS implementations of expressions where needed in other namespaces