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

Synchronize Decimal overlay and corelibs-foundation implementations #3056

Merged
merged 2 commits into from Aug 22, 2021

Conversation

xwu
Copy link
Collaborator

@xwu xwu commented Aug 21, 2021

Several improvements were made to the corelibs implementation of Decimal over the years which have not been in sync with the overlay. Most evidently, #2926 resolving SR-13837 and #2574 implementing init?(exactly:) are lacking from the overlay. Credit goes entirely to @spevans for actually implementing these fixes.

This PR re-aligns the two implementations. Only very minor adjustments are made to the corelibs implementation, mostly where it uses private APIs that do not exist in the overlay, to better keep the two implementations in sync.

A minor change is made to both implementations in terms of diagnostic messages: where we state that Decimal does not "yet" conform to FloatingPoint, the "yet" is deleted because it misleadingly suggests a conformance that is not the plan of record.

@xwu xwu changed the title Synchronize Decimal overlay and corelibs-foundation implementations. Synchronize Decimal overlay and corelibs-foundation implementations Aug 21, 2021
@xwu xwu requested a review from spevans August 21, 2021 00:53
@xwu
Copy link
Collaborator Author

xwu commented Aug 21, 2021

@swift-ci test

@xwu
Copy link
Collaborator Author

xwu commented Aug 21, 2021

@swift-ci test Linux

@xwu xwu merged commit 59346dd into apple:main Aug 22, 2021
@xwu xwu deleted the sr-13837 branch August 22, 2021 22:53
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