Skip to content
Discussion options

You must be logged in to vote

Enums aren't supposed to be treated as raw values of the underlying type and I don't think it's worth making it easier to accidentally to do in order to remove an explicit cast from the uncommon use cases such as binary serialization.

Replies: 2 comments 41 replies

Comment options

You must be logged in to vote
2 replies
@Pyrdacor
Comment options

@CyrusNajmabadi
Comment options

Answer selected by Pyrdacor
Comment options

You must be logged in to vote
39 replies
@Pyrdacor
Comment options

@CyrusNajmabadi
Comment options

@siegfriedpammer
Comment options

@HaloFour
Comment options

@Pyrdacor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants