Skip to content

Incorrect description of Coherence #17

@Centril

Description

@Centril

In Rust, "trait coherence" (or simply "coherence") is the property that there is at most one implementation of a trait for any given type.

Coherence is not a Rust invention. At the very least, Rust has gotten much of its notion of traits and implementations from Haskell's type classes and instances. Haskell guarantees coherent type classes instances, but it does not guarantee "global uniqueness of instances", which I think is what is described above.

See: http://blog.ezyang.com/2014/07/type-classes-confluence-coherence-global-uniqueness/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions