Skip to content

equality for character types: either let it error out, or implement it properly #213

@fingolfin

Description

@fingolfin

Right now == for generic character (aka character types) is the default Julia one, i.e. using identity ===. This may confuse some users. I think it would be better if this threw a helpful error message.

Even better would be a "proper" equality test, but this might be non-trivial. E.g. arguably these two are equal, but deciding this requires a non-identity re-mapping of the parameters

julia> x = linear_combination([2,1], [T[4],T[4]])

julia> y = linear_combination([1,2], [T[4],T[4]])

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions