-
Notifications
You must be signed in to change notification settings - Fork 11
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
Tricky Edge Cases #20
Comments
Is the "Only long and double primitives" error coming from the Clojure compiler? |
Yes. The fine print says
I was running in to that while proxying a |
Looking at the code, I think the method matching is fine. It's just the Clojure fns are invalid due to the type hints. Would a patch that strips unsupported type hints, but still uses them for method matching, fix this? |
I think that would be enough. Problems were only occurring at compile time and I didn't see anything complaining apart from the Clojure compiler. |
Happy to accept a PR for this |
These tests don't pass in this commit
Hi again. I have detected a tricky edge case. I'm don't know Java very well, so bear with me if I get something wrong here:
It is trickey to override the trickyCase that returns 6.
I propose that there should be an option to explicitly declare the type signatures independent of hints. I found something like (trickyCase [this a b] [int java.lang.String :=> int] ...) ergonomic (example: https://github.com/owenRiddy/proxy-plus-minus/blob/main/test/clj/proxy_plus_minus/core_test.clj#L276).
If you like the idea I can put together a PR for
proxy-plus
.The text was updated successfully, but these errors were encountered: