@Inginsub @hazlin
Uncle Bob recommended something like that IIRC.
Because bools are named true and false and that could confuse particular individuals.
So he advised to always use enums.
Lamp state = true/false
vs
Lamp state = on/off
It's one of those micro optimizations to readability that only academia could have come up with.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.