-
Notifications
You must be signed in to change notification settings - Fork 149
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
Many ambiguities #18
Comments
Ideally these should be fixed. It's really hard to predict these, and worse, people can add more definitions to any package that cause further ambiguities. Some of these are so esoteric that it seems a little silly to fix. I'm wondering if there is something that can be done at the Julia language level to simplify this explosion of possibilities... but maybe it's inherent to multiple dispatch? On the other hand, I'm not sure I can prioritize this for this week at least, sorry @timholy :( |
No problem. Like you, I think the fix for some of these is pointless and probably should be done in Base (see the "Dates module" link above). I might tackle some of them at some point; this is just a TODO. |
Yes, I was just reading that - thanks. I'm sure we can cover the Do you think there is much demand for a static bits array? |
The good news is that Dates isn't loaded by default anymore, so most of the sillier ambiguities noted above are not present unless you load the Dates stdlib. The bad news is we're now up to 114 ambiguities! This makes it hard for any package depending on StaticArrays to deliberately check for ambiguities in its tests. I will work on this, but gotta figure out what we want to do about #518 first. |
Okay, thanks... I haven't looked at this for quite some time, unfortunately. |
It appears we're down to 5 ambiguities now if only LinearAlgebra and StaticArrays are loaded. Most of them look surprisingly fixable too. |
Could conceivably drop the permitted number if you don't want to give up recent progress. Might be Julia version-dependent though. |
While it's not necessary to fix these unless they cause errors, this is a bit concerning:
(In my packages' tests I'm starting to test that this returns an empty array. I can use
setdiff
to get rid of StaticArrays' ambiguities, but I thought I should let you know.)The text was updated successfully, but these errors were encountered: