3 ms·
> In Italian a double negative is still negative. Same in Spanish! I think you're making a very good point here – understanding "unless" (quickly, i.e. withou
by codethief 4y ago
> In Italian a double negative is still negative.
Same in Spanish!
I think you're making a very good point here – understanding "unless" (quickly, i.e. without having to think about it) very much depends on one's understanding of the English language and/or one's mother tongue. Sure, one can probably get used to it (like one gets used to what "if/else" means etc.), but it definitely increases the mental effort needed to read & understand code.
- yebyen 4y agoI think we're going to have problems if we try to make all languages consistent for users of all languages. If and unless are English language keywords besides being Ruby keywords; and in Spanish, the word for "if" and the word for "yes" only differ by an accent mark.
- zelphirkalt 4y agoIn Spanish I usually translated double negation like this: "No! (Wrong!) There is no ..." Bringing it back down to 1 level of negation, for it to make logic sense again.