this post was submitted on 03 Dec 2023
389 points (95.6% liked)

196

16511 readers
2142 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] CheesyFox 1 points 11 months ago (2 children)

a fair point, but aren't division and subtraction are non-communicative, hence both operands need to be evaluated first?

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

It’s commutative, not communicative, btw

[–] CheesyFox 3 points 11 months ago

whoops, my bad

[–] Pipoca 2 points 11 months ago* (last edited 11 months ago) (1 children)

1 - 3 + 1 is interpreted as (1 - 3) + 1 = -1

Yes, they're non commutative, and you need to evaluate anything in parens first, but that's basically a red herring here.

[–] CheesyFox 1 points 11 months ago

ok, i guess you're right