-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
New *(::Bool, ::Number) definition generates conflicts with other Number types #5611
Comments
This also caused a conflict for DualNumbers. |
I thought that this kind of thing should generally be handled with |
Custom number types often define special * definitions that could in principle be handled by promotion for performance. Complex does it, and I bet rational does too. That's why I do it in PowerSeries. Complex had to get two new * definitions to disambiguate with Bool in efcb565. |
It looks like both packages affected here have resolved the ambiguities without too much hassle. Please reopen if something does need to be changed. |
efcb565 introduced a
*(::Bool, ::Number)
method. This conflicts with definitions of the formwhich I suspect most custom number types define. PowerSeries.jl for one has lots of newly conflicting definitions now.
Are there alternative possibilities for implementing whatever feature efcb565 is implementing? Should all Number types have to disambiguate themselves with Bool?
The text was updated successfully, but these errors were encountered: