Skip to content

Add limited implementation inheritance via traits #299

@rust-highfive

Description

@rust-highfive

Issue by brson
Thursday Oct 17, 2013 at 18:48 GMT

For earlier discussion, see rust-lang/rust#9912

This issue was labelled with: A-grammar, A-traits, A-typesystem, B-RFC, P-high in the Rust repository


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

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions