3 ms·
there are several benefits to using named constants over literal strings, and enums give you namespaced named constants
by zem 6y ago
there are several benefits to using named constants over literal strings, and enums give you namespaced named constants
- nerdponx 6y agoNot only that, but both static type-checking (with appropriate tooling) and convenient runtime membership checks.