462
WishUnderflow (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] wheezy@lemmy.ml 4 points 4 days ago* (last edited 4 days ago)

Well, not entirely. There are cases for which a person utters the wish and it is not counted. "I wish for a million wishes!"

The standard is for the genie to explain the exceptions but not count that as a wish.

Now, it could decrement the count after this check. But just decrementing the count before verification would be sloppy.

But, then again, basic verification would also include checking that wishes_remaining <= MAX_WISHES.

Which, I think is a pretty standard check for genie's. Given that that constant has remained at 3 since their beta days and exceptions are thrown for violations of this rule.

this post was submitted on 31 Jul 2025
462 points (97.5% liked)

Programmer Humor

25448 readers
1052 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