Hacker News new | ask | show | jobs
by Rapzid 844 days ago
Enums suck in a bunch of languages including C#. It has binary compatibility issues that need consideration along with some other gotchas and shortcomings.

So much so that much of the dotnet official stuff, ie asp.net, use static classes with string fields instead of enums.

Unfortunately that doesn't play well with libraries that have enum support like entity framework. PITA.

One saving grace is the ability to create extension methods on enums.