-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Override operators with the scope just like functions #2631
Labels
Comments
My vote is yes. My reasons:
|
Yes, I agree. It makes a lot of sense. And I don't think there is a use case where you would not want the operators consistent with the corresponding functions. So, let's go for it 👍 . |
gwhitney
changed the title
Should it be possible to override operators with the scope?
Override operators with the scope just like functions
Jul 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is an interesting case. What happens right now is that functions and constants can be provided by the
etc. It makes sense that they would.
scope
passed tomath.evaluate
, but this will not have effect on operators. I.e. passingmod
oradd
or so toscope
will not replace the operators%
andOriginally posted by @josdejong in #2617 (comment)
The purposeof this issue is to
discuss whether overriding
, etc. (And if the conclusion is so,serve as a marker that a PR to do this is needed.)mod
,add
, etc. in the scope should affect the outcome of infix operators like%
,The text was updated successfully, but these errors were encountered: