-
Notifications
You must be signed in to change notification settings - Fork 126
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
Prefer symbols over strings in polynomial_ring #4133
Conversation
e596407
to
5d631fb
Compare
Please add a test to ensure this is not done wrong in |
Not sure what you mean here? Using strings is not "wrong". Adding a test that reliably prevents new code from using this would be super hard to do, I don't think it is reasonable to expect this from this PR.
I agree a style guide entry suggesting (and explaining!) that would be a good idea. But again I don't think it is necessary to do it in this PR. Of course if @lgoettgens has the time for it, great. But otherwise either a follow-up PR, or an issue reminding us to do this should be fine? |
I can add a style guide entry, but would prefer to do that in a follow-up PR. It would be great to get this in ASAP before we get any conflicts.
…On September 23, 2024 2:32:58 PM GMT+02:00, Lars Kastner ***@***.***> wrote:
Please add a test to ensure this is not done wrong in `src` again. We don't want to repeat this procedure over and over. Also add a style guide entry that symbols should be used instead of strings.
--
Reply to this email directly or view it on GitHub:
#4133 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is huge, so I did not look at every changed line. But I looked at many samples across varies files and they all seemed reasonable. So if the tests pass, we should just merge it.
It was just a jab at this PR being super large without significantly improving performance. As you said in Nemocas/AbstractAlgebra.jl#1804:
So since we are approaching this bureaucratically I commented bureaucratically. ;) |
* Prefer symbols over strings in `polynomial_ring` * Prefer symbols over strings in poly ring shorthand
See Nemocas/AbstractAlgebra.jl#1804