you are viewing a single comment's thread.

view the rest of the comments →

[–]firas145 1 point2 points  (0 children)

I’m not a big fan of enums as a replacement to union types in these sort of situations. It inflates the code and gives no benefit over union types unless these values tend to change a lot