-
Notifications
You must be signed in to change notification settings - Fork 250
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
Add in_place
suffix for BigInteger
methods
#782
base: master
Are you sure you want to change the base?
Conversation
@Pratyush I thought about this PR and because the To unify everything, wouldn't it be better to rename everything throughout the code with an |
I'd much rather have a |
Wouldn’t it be a massive breaking change? |
Not more than adding the |
Ah I assumed it was to do it for all of the other traits too, like Field and GroupOn Feb 28, 2024, at 8:51 AM, Michele Orrù ***@***.***> wrote:
Not more than adding thein_place suffix? If it helps with naming consistency down the line before 1.0 I think that's a valid effort (and we should deprecate the previous names, not just remove them)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
[EDIT]To phrase better my comment: In
I think it's nice to have either (1) @Pratyush In your comment, are you implying that having |
@mmaker Agreed, I found it confusing at the beginning like in Montgomery backend for exemple we have:
The |
"Assignment operators" is the C term, so Afaik Also, big integers are bigish for high performace code, so if a non-in-place variant feels particularly rediculous for operation |
So my rough rule-of-thumb has been to use |
Description
This pull request introduces a standardized naming convention for methods in the
BigInteger
module, specifically targeting functions where theself
mutable value is modified in-place. The convention adds thein_place
suffix to method names to provide clarity and consistency in the codebase.closes: #781
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the GitHub PR explorer