739
ifn't (programming.dev)
submitted 5 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 102 points 5 months ago

Please God let this be a humorous post that somehow does not also find a way to manage to come true...

[-] [email protected] 87 points 5 months ago* (last edited 5 months ago)

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.

[-] [email protected] 42 points 5 months ago

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

[-] [email protected] 19 points 5 months ago

Which is awful and incredibly confusing. I hate ruby

[-] [email protected] 3 points 5 months ago

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

[-] [email protected] 2 points 5 months 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.

[-] [email protected] 14 points 5 months ago

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

[-] [email protected] 4 points 5 months ago

If not anybody have time for that.

[-] [email protected] 1 points 5 months ago

*ifn't*

Oh dear Lord what have I done!? :-P

this post was submitted on 18 Jan 2024
739 points (98.6% liked)

Programmer Humor

18388 readers
799 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 1 year ago
MODERATORS