Using enum
for something that’s not actually an enum is ugly and confusing. I’d say that’s enough reason not to do it.
The “utility class” pattern is perfectly legitimate. If your tools don’t like it, that’s a problem with the tools.
Using enum
for something that’s not actually an enum is ugly and confusing. I’d say that’s enough reason not to do it.
The “utility class” pattern is perfectly legitimate. If your tools don’t like it, that’s a problem with the tools.