News for hackers. Stuff that matters.
Re:Berkshire Hathaway’s stock price is too high for Nasdaq c... by Uptrenda on Wednesday May 05, 2021 @03:57AM (#27047298)
Honestly, I always found precedence rules horribly ambiguous. I just use brackets for clarity and forget about it. Or is this considered 'bad practice'?
Re:Berkshire Hathaway’s stock price is too high for Nasdaq c... by LorenPechtel on Wednesday May 05, 2021 @03:14PM (#27054351)
I've never found it to be an issue with math. Unary minus > powers > multiplication/division > addition/subtraction.

I have seen differences in the precedence of logical operators between languages (and > or but what happens when you have both math and logic in the same statement isn't entirely consistent) and always use parenthesis in those cases--although these days if Resharper says it's redundant I let it remove them.

Re:Berkshire Hathaway’s stock price is too high for Nasdaq c... by Thorrez on Thursday May 06, 2021 @12:59AM (#27059312)
I don't consider it bad practice to insert parentheses, especially with exponentiation because many people are less familiar with its precedence rules.