Skip to content
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

Semicolon before kwargs #2618

Closed

Conversation

JohnAAbbott
Copy link
Contributor

Ensured that all(?) calls (in mpoly-affine-algebras.jl) specifying kwargs have a semicolon just before the first kwarg.
Refer to discussion #2615

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #2618 (943142e) into master (a8f96d1) will increase coverage by 0.09%.
The diff coverage is 7.75%.

❗ Current head 943142e differs from pull request most recent head ef66aca. Consider uploading reports for the commit ef66aca to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2618      +/-   ##
==========================================
+ Coverage   72.04%   72.13%   +0.09%     
==========================================
  Files         429      429              
  Lines       60691    60536     -155     
==========================================
- Hits        43722    43669      -53     
+ Misses      16969    16867     -102     
Files Changed Coverage Δ
src/Rings/mpoly-graded.jl 73.86% <0.00%> (+0.41%) ⬆️
src/Rings/mpoly-affine-algebras.jl 53.84% <64.28%> (+2.43%) ⬆️

... and 13 files with indirect coverage changes

@lgoettgens
Copy link
Member

One can additionally remove duplicate names if the name of the kwarg and the name of the variable coincide, i.e. foo(param; something=something) can be simplified to foo(param; something). In my opinion, this makes the code even easier to read and understand (in particular it shortens lines).

end


# ============================================
# 2023-06-30 START: New impl of homogenization
# By John Abbott, based on K+R Book vol 2
# By John Abbott, based on K+R Book "Computational Commutative Algebra" (see "justification" below)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR seems to contain other changes beyond those advertised in the title?

It also has conflicts now...

Did you generate this with a script? If so, perhaps we can just redo this cleanly from latest master, with the script in the commit message (handy for future repetitions of this change)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I look to see how scary "resolve conflicts" is?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be mostly due to #2630 and #2614.

@JohnAAbbott JohnAAbbott force-pushed the semicolon-before-kwargs branch from ef66aca to e2dfa57 Compare August 15, 2023 13:14
@JohnAAbbott
Copy link
Contributor Author

Ahh! Not sure what I did. Hope it wasn't harmful.

@JohnAAbbott JohnAAbbott deleted the semicolon-before-kwargs branch February 15, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants