-
Notifications
You must be signed in to change notification settings - Fork 17
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
Ambiguities whac-a-mole? #161
Comments
This is an unfortunate consequence of the approach taken in this package together with julia's lack of proper interfaces. It's hard to know what methods to implement to follow an interface, e.g., what does it mean to be a
It is if you want to cover everything, but it is not an endless game trying to get one particular calculation working. Getting several particular calculations working has been more or less how this package has been developed. The interaction between two different kinds of "special real", like particles and either of |
Thanks, I see! |
The nature of this package makes ambiguities easy to create – it wants to overload "all" arithmetic operations basically. Some examples below.
Of course, one could directly follow the recommendation from error messages and define those specific methods. But it seems like an endless game of whacking more and more ambiguities.
I wonder if you had some thoughts on more principled approaches to avoid them? If that's possible at all...
The text was updated successfully, but these errors were encountered: