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

Respect the Liskov substitution principle for RGB and RGBA #109

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

Deewarz
Copy link
Contributor

@Deewarz Deewarz commented Feb 22, 2024

Inheriting RGBA from RGB was an error: this does not respect the Liskov substitution principle since we rewrite the signatures of the methods.

Also: Consider RGB, RGBA, Vector2, Vector3 and Quaternion as final classes

Also: Consider RGB, RGBA, Vector2, Vector3 and Quaternion as final classes
@Deewarz Deewarz requested a review from zpl-zak February 22, 2024 10:49
@Deewarz Deewarz self-assigned this Feb 22, 2024
@Deewarz Deewarz merged commit 3badf24 into develop Feb 22, 2024
5 checks passed
@Deewarz Deewarz deleted the fix-rgb-rgba-liskov-principle branch February 22, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants