Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Enums are often wrapped as integers #52

Closed
tybor opened this Issue · 1 comment

2 participants

@tybor
Owner

Many enums in the wrappers are wrapped as integers while a more correct way is to write expanded classes inserting the ENUM class.
While it not wrong to use a plain INTEGER it makes easier to break contracts, i.e. using wrong integer values; having expanded classes that inserts ENUM allows the same performance of a plain integer with the correctness of a strongly typed expanded type.

@tybor tybor was assigned
@cadrian cadrian closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.