4 ms·
It’s silly to have so many keyword synonyms as specified in that earlier regex. I’m also glad we can’t specify numeric literals as roman numerals. KISS
by mckn1ght 2y ago
It’s silly to have so many keyword synonyms as specified in that earlier regex. I’m also glad we can’t specify numeric literals as roman numerals. KISS
- xigoi 2y agoHonestly I’d prefer if “yes” and “no” were the only ways to spell the boolean values. They make sense in pretty much all contexts where booleans are used, whereas “true” and “false” rarely make sense.
- tacker2000 2y agoIn boolean logic true/false is ubiquitious and well known. As you can see, if one tries to be cute with it, one will get all sorts of issues. So at this point it doesnt make sense to use anything else.
- xigoi 2y agoThe true/false terminology makes sense in boolean logic because you’re dealing with the truth of propositions. However, it does not make sense in the context of a configuration language, where there are no propositions that could be true or false.
- stevage 2y agoHuh, I never considered this. we take true and false for granted everywhere but they aren't the most meaningful.
- School-Cotton 2y agoIt makes sense in the context of a configuration language because virtually 100% of programmers and other technical computer users understand “true” and “false” as the canonical Boolean values, and as far as I know that has always been the case. It never would have made sense to invent different unfamiliar terms like “yes” and “no” because of some niche philosophical distinction between “Boolean logic” and “configuration” that almost nobody in the real world cares about.
- xigoi 2y ago“yes” and “no” are “unfamiliar terms”? What the fuck? Everyone who knows even the basics of English knows what these words mean.
- School-Cotton 2y agoThey are familiar as English words, yes, but unfamiliar as terms of art for Boolean values in computing. It’d be like replacing “if” statements with “whenever” statements.
- mckn1ght 2y agoDon’t give them any ideas! They already tried to make inroads with ruby’s “unless”.
- dtech 2y agoBoolean algebra with true and false was well established decades before computers were invented
- xigoi 2y agoBoolean algebra deals with logical propositions, not with configuration. The true/false terminology makes sense there.
- deleted 2y ago[deleted]