3 ms·
Most of the principles are always in tension to some degree, and come down to a design decision. In this case, the shorter, clearer term won out. The two term
by jlesk 9y ago
Most of the principles are always in tension to some degree, and come down to a design decision. In this case, the shorter, clearer term won out. The two terms are practically synonymous, so if you know what a "boolean" is, you probably know what a "flag" is.
In actual use, you rarely interact with the names anyway -- you use `true` and `false` as values like most other languages.
- newen 9y agoFlag is a pretty obscure term that you learn from using the linux command line. Booleans are in math and engineering. Flag is not clear at all and using it instead of boolean, especially when you don't even use the term boolean directly all that much, seems kind of silly.