3 ms·
That expression would not pass code review around me, and a linter should flag it for sure. But all the precedence rules you're invoking here are useful in iso
by samatman 3y ago
That expression would not pass code review around me, and a linter should flag it for sure.
But all the precedence rules you're invoking here are useful in isolation, and I see no reason why they shouldn't parse in combination. A linter can use heuristics to flag cases which should be parenthesized, a parser would need a defensible rule for failing a parse. What would that rule be?