-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup: align group send err enum order #2731
Conversation
b1705a6
to
0f8fb2d
Compare
0f8fb2d
to
2457125
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2731 +/- ##
==========================================
- Coverage 73.14% 72.99% -0.15%
==========================================
Files 149 149
Lines 30516 30516
==========================================
- Hits 22320 22276 -44
- Misses 8196 8240 +44 ☔ View full report in Codecov by Sentry. |
we should pin enums with values. now this PR changes the actual int value of the enum, doesnt it? |
@iphydf @Green-Sky can't we do something like this (at least of all public enums in tox.h and toxav.h) :
then we can reorder how we like. with OK always must be (zero) "0" |
Enums can't be removed or reordered without breaking API or ABI, correct. This is why we're doing it now, before the release. What would be improved by pinning the numbers? |
other question is, what would be worse? with pinning the numbers will be fixed, even when we would delete an entry in the enum. now you can't delete an entry without having to break things (unless its the last entry) |
With numbers, you can't delete members either, because each name is part of the API. |
This change is