casey / casey/x-serialization-format
Payload-less flexible enums?
Open
- 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