|
|
|
|
|
by kamilafsar
1344 days ago
|
|
Interesting, we’re the opposite: use enums where possible. We think it adds more clarity to the reader. Besides, sometimes number values make more sense then string values. Especially when you want to do bitwise operations, which are not possible on string unions. |
|
Still, I'd prefer:
Just for explicitness. But that's my subjective opinion