Skip to content

feat(core)!: Rework enums to have dedicated API #77

Description

@lukasfri

Currently, enums use the Seq API to try and de-serialize variants. This is wasteful, as it means that all sequence API accesses, including those that will error, uses a rewind catcher/try_deserialize, even if it's not needed. To optimize this, an API should be added to properly handle de-serialize attempts that we are okay with failing. However, this would mean as well that the Seq API might need to be reworked, cause if an element fails, it might put the sequence in a bad state.

It might be decided that we shouldn't rework, but it should be evaluated atleast.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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