News for hackers. Stuff that matters.
Re:When are enums not a code smell? by kaetemi on Monday November 22, 2021 @10:04AM (#29307010)
The OO story generally falls apart once you go outside of the module/library, and want to actually treat objects like generic objects, and have new custom behaviour for some types of objects.

Either you end up with 'scary' enums, or with dynamic_cast and 'scary' null pointers.

There are no comments on this comment yet.