Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Not necessarily. An enum can be converted to an integer in most languages so custom types use the same enums but within a user range, in my case it's between 15-60000. That way I can keep the size of individual types capped at 16 bits.