3 ms·
You would still need to conceive ahead of time of the possible values that the enum may take.
by fluoridation 4y ago
You would still need to conceive ahead of time of the possible values that the enum may take.
- defrost 4y agoNot at all - there's sufficient range in a 32 bit unsigned integer and any values used after the initial assigned values can have details in a lookup table modifiable as time passes. In actual practice, the Australian Government found it sufficient to expand gender on passports from [M]ale [F]emale to simply include [O]ther (2011) [1]. [1] https://www.theguardian.com/world/2011/sep/15/australian-passports-third-gender-option https://www.theguardian.com/world/2011/sep/15/australian-pas... [2] https://www.passports.gov.au/getting-passport-how-it-works/documents-you-need/sex-and-gender-diverse-passport-applicants https://www.passports.gov.au/getting-passport-how-it-works/d...
- fluoridation 4y agoYes, it's expandable later. But in your initial implementation you'll still need to decide on a set of possible values, yes?