-
Notifications
You must be signed in to change notification settings - Fork 1.1k
make fromOrdinal public and always available #9987
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
make fromOrdinal public and always available #9987
Conversation
e135fce
to
d669c0b
Compare
tests are passing @sjrd is it correct that the |
TBH I don't know. I have no recollection of what we discussed about |
Perhaps it was only if there there is at least one value :/ but I suppose this is meant to be low level for serialisation so it may be simpler to say its always there, as dual to |
No, it's probably always. The other possibilities do not make sense. What I'm not sure is whether we actually decided to make this public. But if we did, then it should definitely be always. |
its supposed to be the method thats available for an arbitrary serialisation framework so I would assume external access is required |
what should happen with this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it should be merged.
fromOrdinal
exists on the companion object of an enum and is always defined, even if there are no value cases