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

removed BlLayout, BlFlowLayout and BlLinearLayout #= and #hash #700

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

plantec
Copy link
Collaborator

@plantec plantec commented Feb 14, 2025

I've passed two days digging and digging everywhere because of an issue related to this bad kind of redefinition of #=. It does'nt make sense to have such #= implementation for so complex objects and that may have specific subclasses. moreover, when one send #layout: with a new layout as argument, it should ensure that the new layout instance is taken, otherwise, one would have to test the equality then change the current layout state which could lead to questionable code and many alternatives to check.

I've passed two days digging and digging everywhere because of an issue related to this bad kind of redefinition of #=.
It does'nt make sense to have such #= implementation for so complex objects and that may have specific subclasses.
moreover, when one send #layout: with a new layout as argument, it should ensure that the new layout instance is taken, 
otherwise, one would have to test the equality then change the current layout state which could lead to  questionable code and many alternatives to check.
@plantec
Copy link
Collaborator Author

plantec commented Feb 14, 2025

fix #699

@plantec plantec merged commit 7339d1d into dev Feb 14, 2025
14 of 18 checks passed
@tinchodias tinchodias deleted the RemoveBlLayoutEqualsAndHashImplementations branch February 18, 2025 14:57
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.

1 participant