Skip to content

Swift won't allow existentials to be made Equatable #5

@beccadax

Description

@beccadax

While you can declare on a protocol that all conforming types must conform to another protocol, you can't declare that the protocol existential itself conforms to a protocol. This prevents AnySQLColumnKey from conforming to Equatable, even though heterogeneous comparisons of its subtypes are pretty easy to do.

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