Re:Why the fuck are we templating YAML? (2019)
by brobdingnagians on Tuesday January 23, 2024 @07:17AM
(#39102389)
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.
[ Parent
| on HN ]
Re:Why the fuck are we templating YAML? (2019)
by BenjiWiebe on Tuesday January 23, 2024 @08:49AM
(#39103228)
1 vs 0 is another typo of Boolean values with opposite meanings, in quite a few languages.
Re:Why the fuck are we templating YAML? (2019)
by naniwaduni on Tuesday January 23, 2024 @09:22AM
(#39103607)
Worse, 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.
Re:Why the fuck are we templating YAML? (2019)
by smaudet on Wednesday January 24, 2024 @01:10AM
(#39114191)
Lets 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) !