Octave style guide: Difference between revisions

Jump to navigation Jump to search
m
Line 96: Line 96:
<pre>error ("my_cool_function: input A must be a matrix");</pre>
<pre>error ("my_cool_function: input A must be a matrix");</pre>


Because the function call to `error` is one code unit, prefer keeping the message on one line even if the message itself is long.
Because the function call to {{codeline|error}} is one code unit, prefer keeping the message on one line even if the message itself is long.


Octave has several functions that produce error messages according
Octave has several functions that produce error messages according
1,072

edits

Navigation menu