-
Notifications
You must be signed in to change notification settings - Fork 0
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 a multiple inheritance helper #5
Comments
Let me throw another idea at you. Why bother making a tree at all? Consider something. When you're using multiple inheritance, what you want to inherit is exactly the list of classes in your base, right? Why not treat each class exactly as classes were intended to be, a black box, and not worry at all for their ancestry? If you don't get what I mean, let's look at how this works for the diamond problem: class A {}
class B extends A {}
class C extends A {}
class D extends [B,C] {} //Fictitious notation The question here is whether or not If you look at the README.md for ClassicJS, you'll see that I included an extra feature in |
gizmo is the first and only other library that mentions making making trees of prototypes with
Proxy
to do multiple inheritance. I had this idea when I was trying to make mymultiple()
helper. It'd be interesting to add the feature here inlowclass
The text was updated successfully, but these errors were encountered: