5 ms·
Having on and no both be Boolean literals, but of opposite values sounds like a horrible decision, a typo doesn't result in a syntax error, but instead in a com
by brobdingnagians 3y ago
Having on and no both be Boolean literals, but of opposite values sounds like a horrible decision, a typo doesn't result in a syntax error, but instead in a completely wrong semantic misconfiguration.
- BenjiWiebe 3y ago1 vs 0 is another typo of Boolean values with opposite meanings, in quite a few languages.
- naniwaduni 3y agoWorse, the ability to typo 9 in some languages for 0 and flip your boolean when it should be a type error just seems like a misdesign.
- smaudet 3y agoLets hear it for true/false, and triply enforced booleans (variables represented by three or more memory locations https://en.wikipedia.org/wiki/Triple_modular_redundancy https://en.wikipedia.org/wiki/Triple_modular_redundancy) !