this post was submitted on 13 Jan 2026
121 points (89.5% liked)
Programmer Humor
28641 readers
1585 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
Maybe it's just worse when written. The period at the end of the sentence makes it hard to see how it could be misunderstood.
To your point though, not sure if I'm aware of any programming language that would continue a statement with a following if block. Far more likely that it would fail due to lack of an element to apply the 6 to rather than having a pointer to the previous object, or he would try getting what ever the literal version of a 6 would be, or maybe some slang version.
Python, though the logic would be backwards:
Right, it would be started basically exactly the opposite. Certainly not a statement followed by an if block.
The code block I wrote is a statement followed by an if. What I meant be "backwards" was the order of conditions, not that the statement came after the if. It's exactly what you asked for.
any language that allows ternary conditionals
Those would all start with the if, followed by two conditions, not a statement and then an if. There would be a condition to evaluate, followed by then/else?