Ha, when I was doing a design verification stint, I caught a piece of verilog that
depended on an incorrect view of order of operations and saved the corp a new mask, so
completely agree. Infix notation is just a bad idea.
On Jan 30, 2023, at 11:27 AM, Larry McVoy
<lm(a)mcvoy.com> wrote:
On Mon, Jan 30, 2023 at 11:21:45AM -0500, Steve Nickolas wrote:
I'll never do if (a==b&&c==d),
always if ((a==b)&&(c==d)).
I'm a
if ((a == b) && (c == d))
guy but yeah, spell it out not just so the compiler doesn't mess with
you, for me, it is more so my eyes run over the expression and I can
parse it with less brain cells, parens let me think less.
I've always had the opinion that code should be written in a way that
is the most easy to read.