Yes, good indentation does help, and it makes the code much easier to read. If you are not already doing so, I'd highly recommend using a text editor that has parentheses matching. On Windows, NotePad++ is good. On Linux I use Scite. On Mac, I don't know. NotePad++ and Scite also have syntax highlighting for LISP, which although not quite the same as Nyquist, has enough in common to be useful.mharriger wrote:It was a struggle to keep the parens matched up, good indentation seems like it would help.
Here's a screenshot of some Nyquist code in Scite text editor. Note the red ")" indicating that it is mismatched, and the color of (some) keywords, quoted strings and comments: