On Jan 29, 12:05pm, Sheldon Hearn wrote:
} Subject: Re: btokup().. patch to STYLE(9) (fwd)

} The reason I'm interested in this (now tiresome) thread is that I'd much
} rather have to read
} 
}       /*
}        * Bail out if the time left to next transaction is less than
}        * the duration of the previous transaction.
}        */
}       if (t % u - n % u < d % u) {
} 
} than
} 
}       if (((t % u) - (n % u)) < (d % u)) {
} 
} Giving folks the go-ahead to use parens as a form of documentation is
} misguided and will end in tears. MHO.

This is a fairly trivial example, but I find the second version slightly
easier to read at a glance.  I do think it's overly parenthesized, though.
I prefer

        if ((t % u - n % u) < (d % u)) {

or 

        if ((t % u - n % u) < d % u) {

because they are less cluttered.

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to