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

Add listmodel functions #127

Closed
wants to merge 15 commits into from
Closed

Add listmodel functions #127

wants to merge 15 commits into from

Conversation

midwan
Copy link
Collaborator

@midwan midwan commented Nov 9, 2024

Added two virtual functions in listmodel:

  • add
  • clear_elements

I think these makes sense to have as a minimum model, since they are almost always needed.

@midwan midwan requested a review from Jarod42 November 9, 2024 16:42
@Jarod42
Copy link
Collaborator

Jarod42 commented Nov 11, 2024

From interface point of view, I disagree with the usage which requires dummy implementation (Broken Liskov's principle).

I have just created #132 for stringlistmodel (which is indeed a useful class permitting to mutate the list).

I think that PR might be closed.

@midwan
Copy link
Collaborator Author

midwan commented Nov 13, 2024

OK, let's go with stringlistmodel (I did the same in my project as well)

@midwan midwan closed this Nov 13, 2024
@midwan midwan deleted the add-listmodel-functions branch November 13, 2024 18:21
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.

2 participants