this post was submitted on 18 Jan 2024
736 points (98.5% liked)

Programmer Humor

20829 readers
1331 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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jtk@lemmy.sdf.org 12 points 1 year ago* (last edited 1 year ago) (2 children)

I would have bought it if they said ifnot instead, it's the same number of characters and wouldn't require a major parser overhaul to support keywords with a ' in the name.

[–] pupbiru@aussie.zone 6 points 1 year ago (1 children)

i mean, “unless” tends to be the usual term for an “if not” keyword in languages that implement such a thing

[–] Fal@yiffit.net 4 points 1 year ago (3 children)

Which is awful and incredibly confusing. I hate ruby

[–] pupbiru@aussie.zone 1 points 1 year ago

totally agree; just saying that if it’s GOT to be something, that something should probably be unless… unless . . .

[–] frezik@midwest.social 1 points 1 year ago

I find that you need to choose carefully when to use it. Simple cases tend to be alright. Larger, more complex conditions shouldn't touch it.

[–] OpenStars@startrek.website 2 points 1 year ago

Yeah, to be clear, I don't like it, I don't like it one bit:-P.