Octave style guide: Difference between revisions

Jump to navigation Jump to search
m
Line 86: Line 86:
<pre>n+1</pre>
<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
In particular, simple expressions used as an argument to a function or as part of an indexing expression usually look better without extra spacing. For example, you may write


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


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


<pre>
<pre>
1,072

edits

Navigation menu