-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Auto-detect user-written methods #324
Comments
👍 |
Same with |
The idea is to support it for all of them. It gets a bit hairy when we get to comparison because it’s several ones. Would we stop completely? Or just not replace one of them? |
With comparison methods, perhaps total_ordering could provide guidance; if you provide enough for It's a bit of feature creep, but it feels in line with the developer doing as little work related to attributes as necessary and we take care of the rest. |
The more I think about it the more I think we should just skip methods that have been defined and be done with it. That allows people to customise their classes even better. |
Currently, if you want to implement a method yourself, you have to remember to do two things:
I’ve seen quite a few people be confused/frustrated by that.
I think unless
these
is set, it would be kind of cool if we detected that the current class (and not some super class) has a user-written method and set the flag to false automatically such thatdoes what you’d expect.
Opinions?
The text was updated successfully, but these errors were encountered: