News for hackers. Stuff that matters.
Re:When are enums not a code smell? by p2p_astroturf on Monday November 22, 2021 @06:26PM (#29312828)
Did you link to this SE post so we could laugh at it?

Never smells: You are using a language with discriminated unions (before or after 90s)

Smells: You are using a dynamically typed language, and you used a hack to implement them

Sometimes smells: You are using a 90s language with a horrible implementation of enums

Smells: You are an OOP charlatan and they do not fit your invalid world view and your enums have methods on them plus some other bezerk shit. plus you have cognitive dissonance because you were told objects are expensive and you should really only pass ints around willy nilly and everything else should be god objects

There are no comments on this comment yet.