[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Operator precedence and code readability
- From: "frank@..." <frank@...>
- Date: Thu, 7 Jan 2021 08:15:04 -0500
Parentheses are free
In any programming language, as well as plain text documentation, I almost always use parentheses to indicate the exact order of things.
As a corollary, if the parens would end up making the expression unwieldy or too complex then I take that as an indication that the original expression is too complex and I try to rewrite it.
Frank