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

Assorted fixes #3509

Merged
merged 6 commits into from
Oct 7, 2024
Merged

Assorted fixes #3509

merged 6 commits into from
Oct 7, 2024

Conversation

mahrud
Copy link
Member

@mahrud mahrud commented Oct 6, 2024

  • combined documentation of catch and throw
  • fixed a typical value typo
  • deleted duplicate code
  • changed MonomialIdeal ^ ZZ to use BinaryPowerMethod
  • removed dead code
  • added lift and promote for IndexedVariable

@mahrud mahrud requested a review from d-torrance October 7, 2024 13:57
Consequences => {{"the flow of control is passed to the surrounding ", TO "catch", ", and ", TT "x", " is returned as its value"}},
document {
Key => {"throw", "catch"},
Headline => "throw and catch exceptions",
Copy link
Member

Choose a reason for hiding this comment

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

Is "exception" the right term to use here? This makes it seem like these are used for dealing with errors.

Copy link
Member Author

@mahrud mahrud Oct 7, 2024

Choose a reason for hiding this comment

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

An exception doesn't have to be an error, you catch exceptions so they don't become errors (you can then choose to still signal an error in a perhaps more graceful way, but you can also just do something else instead to deal with the exception). Also the previous titles were "throw an exception" and "catch a thrown exception".

Copy link
Member

Choose a reason for hiding this comment

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

Works for me!

@d-torrance d-torrance merged commit 0c33301 into Macaulay2:development Oct 7, 2024
5 checks passed
@mahrud mahrud deleted the quickfix/stuff branch October 7, 2024 20:34
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.

2 participants