Hello folks,

Since you are asking, let me chime in and say that I use enum's very
frequently. However, my most common use case for them isn't for boolean
flags -- it's actually the strategy pattern. Meaning, attaching a piece of
logic to each value. And more importantly, I order the strategies via the
ordinal of the enum (giving me a priority queue of strategies until I find
one that solves the problem). So for me, the order matters greatly, and I
think that it should be reflected in the API.

Thank you for your time!
David Alayachew

Reply via email to