casey / casey/x-serialization-format

Payload-less flexible enums?

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

It might be good to let users declare that a flexible enum will never have any data-carrying variants. If flexible enums are encoded as `tag, offset_to_variant`, then payload-less enums can be represented just with the tag.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating the flexible-enum declaration and encoding logic, then clarify how a payload-less declaration should be represented. Done means the declaration and tag-only representation are specified and covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.