Whatever is making the code more readable and understandable 😊
I can admit I haven’t been a huge fan of switch statements but lately I am changing sides.
In some situation it’s just making the code easier to process and in our project we have cases where we use it like the examples in the post.