-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unknown constant collides #1293
Comments
I'm happy to refactor to resolve this, but let's discuss a solution first. |
Hey @wdouglass Sorry I never responded to this. I am just starting to catch up on things for Instead for every enum we should have a dedicated Unknown like I am also in support of requiring |
I think that's a great solution! thanks! |
@wdouglass you are fast :) You interested in taking that on? Happy to merge a PR right away, would love to have you back! |
yeah, i could try to put a patch together later today |
Moving to |
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
The
Unknown
constant in constants.go is set with iota, which in it's block always resolves to 0. This collides in a lot of places; This issue is a discussion point.should we set "Unknown" to an arbitrary value? should we start all of our enumerations at iota+1? not sure how to resolve this, but it may be the source of a few bugs!
The text was updated successfully, but these errors were encountered: