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

Cleanup IntOps #1390

Merged
merged 2 commits into from
Apr 5, 2022
Merged

Cleanup IntOps #1390

merged 2 commits into from
Apr 5, 2022

Conversation

BCSharp
Copy link
Member

@BCSharp BCSharp commented Apr 4, 2022

Follow-up on #1347 and #1329 (issue #52).

There are many changes in this PR but most of them is just reordering of methods in IntOps and BigIntegerOps to align them with the order in IntOps.Generated.cs. Makes browsing, comparing, and reviewing easier.

From the functional changes:

  • in IntOps:
    • __abs__ removed (was erroneous)
    • __float__ removed (was redundant)
  • in BigIntegerOps, to align with the other numeric Ops:
    • __pos__ renamed Plus (although actually it is redundant)
    • __abs__ renamed Abs (could have been internal)

There are possibly more redundant methods or methods that could have been internal, but I am not going to hunt them down.

Copy link
Contributor

@slozier slozier left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@BCSharp BCSharp merged commit c14c0ee into IronLanguages:master Apr 5, 2022
@BCSharp BCSharp deleted the cleanup_intops branch April 5, 2022 04:11
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.

None yet

2 participants