-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-trait-systemArea: Trait systemArea: Trait systemA-type-systemArea: Type systemArea: Type systemP-mediumMedium priorityMedium priority
Description
Not sure if 'implementation inheritance' is the right name for this.
Servo people are complaining a lot about not being able to inherit the memory layout of supertypes, since the DOM is a classic OO hierarchy. Seems like we just have to do it. The basic idea is to let traits specify struct fields.
Needs a complete design, something simple.
Metadata
Metadata
Assignees
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-trait-systemArea: Trait systemArea: Trait systemA-type-systemArea: Type systemArea: Type systemP-mediumMedium priorityMedium priority