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

Comic Strips

12945 readers
2902 users here now

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

The rules are simple:

Web of links

founded 2 years ago
MODERATORS
620
I AM MISTER SANTA (lemmus.org)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 41 points 1 year ago* (last edited 1 year 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.

[–] activ8r 7 points 1 year 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.

[–] [email protected] 4 points 1 year ago

But what if naughty = !nice

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 2 points 1 year ago

Ash silently weeps.

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

Won't that always come out as true?

[–] [email protected] 6 points 1 year ago

That's correct, hence everyone is eligible.

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

Mr Santa crashes...