-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Generate proper initializers for concord infected inheritance trees #7
Comments
We have |
@mbj agreed, basically. what about symmetry in case of |
@snusnu Why not? I'm generally a bit defensive adding features to this libs. For anima I cleanly saw the point. For concord I never had the use case. |
@mbj i'm just wondering what |
@snusnu I think you need to reparse your quesition and outline it with code. Are you talking about a |
@mbj The way I see it, class Person
include Concord.new(:name)
end
class Student < Person
include concord.add(:student_nr)
# would generate
# def initialize(name, student_nr)
# super(name)
# @student_nr = student_nr
# end
end I only mentioned |
@snusnu What about NOT calling super in the generated constructor all? |
@mbj that's the thing, i think it'd be cleaner to call Am I missing something? |
@snusnu Lets only add what we need. So lets drop |
@mbj ack |
I'd find quite a few places in my code where I would benefit from being able to do the following:
If this sounds interesting, I could provide the respective PR
The text was updated successfully, but these errors were encountered: