15 ms·
> The advice on that page also specifies to not make the value semantically meaningful, which I take to mean to never set it to that value explicitly. I've tak
by dwattttt 2y ago
> The advice on that page also specifies to not make the value semantically meaningful, which I take to mean to never set it to that value explicitly.
I've taken to coding my C enums with the first value being "Invalid", indicating it is never intended to be created. If one is encountered, it's a bug.