this post was submitted on 18 Oct 2025
12 points (83.3% liked)
Programmer Humor
27141 readers
2944 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yup, that's my interpretation too. It just doesn't sit well with all the other operators.
All the others are phrased as direct questions about the values of A and B:
You see the issue?
Edit: looking online, some people see it as: "If A is true, take the value of B." A implies that you should take the value of B. But if A is false, you shouldn't take the value of B, instead you should use the default value which is inexplicably defined to be
truefor this operation.This is slightly more satisfying but I still don't like it. The implication (ha) that
trueis the default value for a boolean doesn't sit right with me. I don't even feel comfortable with a boolean having a default value, let alone it beingtrueinstead offalsewhich would be more natural.Edit 2: fixed a brain fart for A NAND B