News for hackers. Stuff that matters.
Re:Don't Use Booleans by CharlieDigital on Tuesday July 09, 2024 @08:35AM (#40915361)
This is also another problem and a reason to strictly stick to string type unions, IMO.

There may be a really good use case for the enum type, but I think in most cases, string type unions are clearer, easier, and less prone to errors.

There are no comments on this comment yet.