Wiki Markup |
---|
Programmers frequently make errors regarding the precedence of operators because of the unintuitive low-precedence levels of {{&}}, {{\|}}, {{\^}}, {{<<}}, and {{>>}}. Avoid mistakes regarding precedence through the suitable use of parentheses. This also improves code readability, unless taken to excess. The precedence of operations by the order of the subclauses are defined in the Java Tutorials \[[Tutorials 2008|AA. Bibliography#TutorialsReferences#Tutorials 08]\]. |
Although it advises against depending on parentheses for specifying evaluation order, guideline "EXP08-J. Do not write more than once to the same variable within an expression" applies only to expressions that contain side effects.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4f7c9e15cede6add-7433bd83-49d44ec9-9a1980ea-d21f1aaa6e4b162b76e12c39"><ac:plain-text-body><![CDATA[ | [[ESA 2005 | AA. Bibliography#ESA References#ESA 05]] | Rule 65: Use parentheses to explicitly indicate the order of execution of numerical operators | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c4fdec4cdd4a1354-b5de19c3-48294868-a999a81c-eb1462a914f912f5d26f6087"><ac:plain-text-body><![CDATA[ | [[Tutorials 2008 | AA. Bibliography#Tutorials References#Tutorials 08]] | [Expressions, Statements, and Blocks | http://java.sun.com/docs/books/tutorial/java/nutsandbolts/expressions.html] | ]]></ac:plain-text-body></ac:structured-macro> |
| |||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ed591feb55d631fc-aa61897e-4e744366-8a5f9f76-4b64ab11360077d8cc7af983"><ac:plain-text-body><![CDATA[ | [[Rogue 2000 | AA. Bibliography#Rogue References#Rogue 2000]] | Rule 77: Clarify the order of operations with parentheses | ]]></ac:plain-text-body></ac:structured-macro> |
...