đź’Â Mental model for Booleans vs Enumerates
In programming, Booleans and Enumerates are common data types to represent the concept of “choice”. When there are several things to choose from, the Enumerate is the only one to support it, so that’s clear. But what about when you have two things to choose from? There might be some confusion between both data types since either of them supports handling binary choices. The confusion arrises in particular when you want to add the choice of a new behaviour, on top of an existing one....