Skip to content

Permit @auto_hash_equals cached=true with mutable struct types. #34

@gafter

Description

@gafter

Either

  1. Require that all declared fields are const, or
  2. Add const to each declared field (with a warning?) if not already declared so.

The advantage of doing this is that we get both an efficient hash code and an efficient equality (because of the === shortcut)

const on a field is only available in Julia 1.8 and later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions