Notice the word "clarity" in my original sentence. You seem to have missed it the first time through. Or maybe you just didn't understand what I meant. Statements where a maintainer is forced to memorize precedence tables are NOT clear, and hence fall under my "clarity" caveat.
Sure, but to know if you've omitted the proper set of parenthesis, one still needs to refer to the table, or at least, the subset of it that you consider "clear".
If you use parenthesis all the time, you don't need to do even that. Depending on how your notion of what "clear" operator precedence is compares to your maintainer's notion, this may or may not lead to actual "clarity". :-)
--
Ytrew | [reply] |
my $x = $y * $z;
Hopefully we can all agree that the precedence here is pretty clear. Adding parentheses to this statement seems counterproductive, wasteful, and downright ugly.
If you use parenthesis all the time, you don't need to do even that.
Well, then you're writing Perl with a Lisp dialect. Which is fine, but trying to convince me to do that is going to be unsuccessful to say the least. :-)
| [reply] [d/l] |