Timeline for Why Use !boolean_variable Over boolean_variable == false
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 30, 2022 at 7:07 | comment | added | janv8000 | Do you happen to know if there's a editorconfig rule for the extra whitespace after ! ? | |
| Oct 5, 2020 at 9:40 | comment | added | Konrad Rudolph | @controlbox This isn’t a problem with my analogy. But, like all analogies, it is limited and when you try to take it too far, it breaks. The point of the analogy (and for which is completely sufficient) is that it makes no sense in boolean algebra to add a comparison to a literal. It neither adds clarity nor reads naturally when “translated” into English. | |
| Oct 5, 2020 at 9:31 | comment | added | controlbox | the problem with your analogy is that you can't split 'the sun' and 'shining' and insert a not in the middle. correct comparison would be 'if not the sun shining i stay home' which, if you're not yoda, you'd never say in english. | |
| Feb 19, 2020 at 1:09 | history | edited | Deduplicator | CC BY-SA 4.0 | added syntax-highlighting |
| Feb 27, 2012 at 1:07 | history | edited | Konrad Rudolph | CC BY-SA 3.0 | deleted 1 characters in body |
| S Feb 26, 2012 at 15:09 | history | answered | Konrad Rudolph | CC BY-SA 3.0 | |
| S Feb 26, 2012 at 15:09 | history | made wiki | Post Made Community Wiki by Konrad Rudolph |