News for hackers. Stuff that matters.
Re:When are enums not a code smell? by couchand on Monday November 22, 2021 @10:05AM (#29307023)
Generally the issue with the switches scattered about (or more generally, and concern about conditions scattered about the codebase) is that the body of each case is different. Of course if all the bodies are the same the easier option is a utility method.

There are no comments on this comment yet.