this post was submitted on 18 Oct 2025
756 points (99.3% liked)

Programmer Humor

27065 readers
683 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
 

Definitely a repost, but it fits the season

you are viewing a single comment's thread
view the rest of the comments
[–] Lifter@discuss.tchncs.de 1 points 6 days ago (1 children)

Nice, so my gut feeling about not needing the parenthesis above was right.

[–] captain_aggravated@sh.itjust.works 2 points 6 days ago (1 children)

I store-brand googled it, so I feel I'm not an authority to say one way or another!

[–] silasmariner@programming.dev 1 points 6 days ago

It's a reasonable convention that matches the common DNF (disjunctive normal form) of propositional logic, can confirm it's the right read.

I'd still probably use parentheses for the ∧ (and/conjunction), though I'd never bother with it for ¬ (negation)