Skip to content

add minver/maxver attributes to enum values#406

Open
robUx4 wants to merge 3 commits intomasterfrom
enum-minver
Open

add minver/maxver attributes to enum values#406
robUx4 wants to merge 3 commits intomasterfrom
enum-minver

Conversation

@robUx4
Copy link
Collaborator

@robUx4 robUx4 commented Apr 4, 2021

This allows adding new enum values without forcing old readers to support them.

The explanation is copied from the minver attribute of "element"

This is necessary (IMO) to add new values like zstd compression

@robUx4 robUx4 added clarifications Improve the readability and comprehension of the specs format addition To consider in future EBML versions labels Apr 4, 2021
@robUx4
Copy link
Collaborator Author

robUx4 commented Apr 4, 2021

Actually the default value should not be 1 but the minver value of the element...

@hubblec4
Copy link

hubblec4 commented Apr 4, 2021

Thats the same thing with the element attribute "minver" and "maxver"

What is when this enum is removed in the next ebml-version... and what is when this enum returns in a next next version?

@robUx4
Copy link
Collaborator Author

robUx4 commented Apr 4, 2021

Indeed, there's no reason to have one and not the other. I added both.

Copy link
Collaborator Author

@robUx4 robUx4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated according to comments.

@robUx4 robUx4 requested a review from mbunkus June 6, 2021 16:33
@hubblec4
Copy link

hubblec4 commented Jun 6, 2021

@robUx4 can you change the title to
"add a minver and a maxver attribute to enum values"

@robUx4 robUx4 changed the title add a minver attribute to enum values add minver/maxver attributes to enum values Jun 13, 2021
robUx4 added 3 commits July 11, 2021 08:55
This allows adding new enum values without forcing old readers to support them.

The explanation is copied from the minver attribute of "element"
This could allow deprecating enum values.
@robUx4 robUx4 added this to the new-rfc milestone Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarifications Improve the readability and comprehension of the specs format addition To consider in future EBML versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants