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

Fix partial-ifn with latest Cljs #303

Merged
merged 1 commit into from
Jun 27, 2017
Merged

Fix partial-ifn with latest Cljs #303

merged 1 commit into from
Jun 27, 2017

Conversation

Deraen
Copy link
Member

@Deraen Deraen commented Jun 27, 2017

Old implementation incorrectly used variadic arity for -invoke
implementation. Variadic artities for protocols are not supported by
Cljs. The old code as worked by luck but was broken by a recent change now gives a warning:
https://dev.clojure.org/jira/browse/CLJS-2099

WARNING: Protocol IFn implements method -invoke with variadic signature (&) at line 61 /home/juho/.boot/cache/tmp/home/juho/Source/x/y/559/-pb6rji/js/main.out/reagent/impl/util.cljs

New implementation properly implements all the artities for -invoke. New
implementation creates the partial fn in a constructor function, so -invoke
code doesn't need to do that. New implementation also implements Fn.

Old implementation incorrectly used variadic arity for -invoke
implementation. Variadic artities for protocols are not supported by
Cljs. The old code as worked by luck but was broken by a recent change:
https://dev.clojure.org/jira/browse/CLJS-2099

New implementation properly implements all the artities for -invoke. New
implementation creates the partial fn in a constructor function, so -invoke
code doesn't need to do that. New implementation also implements Fn.
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

Successfully merging this pull request may close these issues.

None yet

1 participant