Jason Hall wrote:
Shane Hathaway wrote:
First, if you like to memorize stuff, you can remember which gets
evaluated first, "<<" or "&". Most of us have better things to
remember. So I'd sprinkle parentheses all over to clarify.
I read an interesting post recently dealing with this subject (the
sprinkling of parentheses), an interesting read.
http://www.plover.com/blog/prog/featurism.html
That advice makes sense in a symbol-heavy language. Perl's operators
require programmers to know the interaction between symbols almost by heart.
But in languages that prefer words over symbols, operator precedence
beyond simple algebraic rules is rarely important, so knowing the entire
precedence order is not an important skill. Experts often completely
ignore it. Parentheses remain useful as a form of documentation in
complex expressions.
Shane
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/