Editing Octave style guide
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 107: | Line 107: | ||
<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 | Because the function call to `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 to the Octave guidelines.Β Consider using {{codeline|inputParser}} | Octave has several functions that produce error messages according to the Octave guidelines.Β Consider using {{codeline|inputParser}} |