There are a couple of good examples here! One thing that I don’t like about the enum is that it mixes two concerns:
I would probably use a type like a tuple that returns something like
Just a quick scratch, but you might the idea.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.