-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
update style recommendations for bangs #1431
Conversation
I agree that this is an improvement 🙂 |
Codecov Report
@@ Coverage Diff @@
## master #1431 +/- ##
==========================================
+ Coverage 88.88% 89.07% +0.19%
==========================================
Files 25 25
Lines 3680 3928 +248
==========================================
+ Hits 3271 3499 +228
- Misses 409 429 +20
Continue to review full report at Codecov.
|
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.
I agree with the change, !
is used to help readability, it is not an obligation and should not be used when redundant
Nice addition to the explanation. This was not in the initial discussion, but I would add putting the mutated argument first, like |
lgtm |
To clarify, we should try to reduce scope for personal preferences when applying the rules the style guide. There's still a question of if a name clearly implies modification, but we should we should either omit |
@matbesancon I agree the ordering point is important. I believe that's addressed by the link to the corresponding discussion in the Julia style guide. |
that's correct I had missed this section |
Some proposed updates based on the discussion in jump-dev/MathOptInterface.jl#475.
@IainNZ @matbesancon @juan-pablo-vielma @rdeits @IssamT