andrewcbancroft.com
Enums Instead of Booleans - An Example Implementation - Andrew Bancroft
For the sake of code clarity, we can often replace boolean values with enumerations. But how do we implement what -produces- the enum values? Learn how in this example!