Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
NewsaHackO
· 8mo ago · 0 comments
I agree. But also, do people rely on operator precedence when coding? I just automatically use parentheses in general.
Comments
[–]
Bootvis
8mo ago
Also for a * b + c ? I know clang tidy wants me to do this but I think it is overkill.
[–]
NewsaHackO
OP
8mo ago
I would usually.
Sometimes
if it's like 2 * x + b, I would not, but personally, I hate chasing down bugs like this, so just add it to remove ambiguity. Also, for like b + 2 * a, I will almost always use parentheses.