this post was submitted on 20 Dec 2023
620 points (98.3% liked)

Comic Strips

11178 readers
4472 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 1 year ago
MODERATORS
620
I AM MISTER SANTA (lemmus.org)
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/comicstrips
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 41 points 6 months ago* (last edited 6 months ago) (3 children)

Mr Santa checks if you are

naughty || nice

to see if you are eligible for a present.

Ho ho ho. Everyone is eligible for a present.

[–] [email protected] 7 points 6 months ago (3 children)

No no no. You're checking two booleans there. People who are naughty, nice, or both get a present. People who are neither naughty or nice get nothing.

[–] Wilzax 4 points 6 months ago

But what if naughty = !nice

[–] WhiskyTangoFoxtrot 2 points 6 months ago

Ash silently weeps.

[–] hakunawazo 2 points 6 months ago

((nice)? 'present' : 'coal');

[–] [email protected] 3 points 6 months ago (1 children)

Won't that always come out as true?

[–] [email protected] 6 points 6 months ago

That's correct, hence everyone is eligible.

[–] [email protected] 2 points 6 months ago* (last edited 6 months ago) (1 children)
[–] [email protected] 3 points 6 months ago

Mr Santa crashes...