Skip to content

Make ranges typed oneofs#387

Draft
jupblb wants to merge 2 commits intomainfrom
michal/range
Draft

Make ranges typed oneofs#387
jupblb wants to merge 2 commits intomainfrom
michal/range

Conversation

@jupblb
Copy link
Copy Markdown
Collaborator

@jupblb jupblb commented Apr 4, 2026

I'm not sure the storage savings are worth the effort.

jupblb added 2 commits April 4, 2026 10:16
Introduce SingleLineRange and MultiLineRange message types, and add
typed_range and typed_enclosing_range oneof fields to Occurrence.
The old repeated int32 range and enclosing_range fields are marked
deprecated.

The typed fields are self-documenting and eliminate the need to
disambiguate 3-element vs 4-element arrays at runtime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant