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

Make core classes final #34

Open
PaulWoitaschek opened this issue Apr 19, 2017 · 5 comments
Open

Make core classes final #34

PaulWoitaschek opened this issue Apr 19, 2017 · 5 comments

Comments

@PaulWoitaschek
Copy link
Contributor

Is there any reason classes like AdapterDelegatesManager are not final? They really do not look like they are built for inheritance.

@sockeqwe
Copy link
Owner

Good point, they should be final.

@veyndan
Copy link
Contributor

veyndan commented May 23, 2017

Such a change would contradict #22 as @rubenweerts made such changes to allow subclassing of AdapterDelegatesManager. I'm wary of the change made in that PR as is evident by the most recent comment but I would be interested in the use case of subclassing AdapterDelegatesManager as described by @rubenweerts.

@sockeqwe
Copy link
Owner

sockeqwe commented May 23, 2017 via email

@veyndan
Copy link
Contributor

veyndan commented May 23, 2017

If you set the implementation detail methods to final, wouldn't it just be preferable to set the whole class to final and favour composition over inheritance?

@PaulWoitaschek
Copy link
Contributor Author

I'd like to see a usecase where overwriting makes sense. I think that if you overwrite something right now you are speculating about the internal implementation.

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

No branches or pull requests

3 participants