Octave style guide: Difference between revisions

Jump to navigation Jump to search
m
Line 82: Line 82:
</pre>
</pre>


An exception is for extremely simple expressions like <pre>n+1</pre>, in
An exception is for extremely simple expressions like
particular when used as an argument to a function or as part of an indexing
 
expression. For example, you may write
<pre>n+1</pre>
 
In particular, when used as an argument to a function or as part of an indexing expression. For example, you may write


<pre>
<pre>
Line 90: Line 92:
</pre>
</pre>


Another exception is for complex arithmetic expressions. It may improve
Another exception is for complex arithmetic expressions. It may improve readability to omit spaces around higher precedence operators, for example
readability to omit spaces around higher precedence operators, for example


<pre>
<pre>
1,072

edits

Navigation menu