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

Changed Size2DCollection to Collection2D #66

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

KyLeggiero
Copy link
Contributor

And We did it without breaking existing code! Woo!

This change makes that protocol more generic, so it can be applied to sizes, rectangles, anything which conforms.

Part of this was removing the requirement for conforming types to also conform to Size2D, and creating a new conformance requirement: CartesianMeasurable. We then changed Size2D to require CartesianMeasurable, and that enabled this broadening.

And We did it without breaking existing code! Woo!

This change makes that protocol more generic, so it can be applied to sizes, rectangles, anything which conforms.

Part of this was removing the requirement for conforming types to also conform to `Size2D`, and creating a new conformance requirement: `CartesianMeasurable`. We then changed `Size2D` to require `CartesianMeasurable`, and that enabled this broadening.
Copy link
Contributor Author

@KyLeggiero KyLeggiero left a comment

Choose a reason for hiding this comment

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

LGTM

@KyLeggiero KyLeggiero self-assigned this Nov 16, 2023
@KyLeggiero KyLeggiero added the enhancement New feature or request label Nov 16, 2023
@KyLeggiero KyLeggiero merged commit e5c0195 into production Nov 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant