3 ms·
> I think that the tail of this expression with 5 parentheses makes this very hard to read > how many args does "iter" have? Forget about parentheses and loo
by junke 10y ago
> I think that the tail of this expression with 5 parentheses makes this very hard to read
> how many args does "iter" have?
Forget about parentheses and look at indentation. You need properly indented code, but that comes easily with a good editor:
(foo (bar ...
...
...)
...
(baz (+ x y)))
Both foo and bar takes 3 arguments, baz only one.
Likewise, "iter" has only one argument, because there is only one subtree at the indentation level where its arguments are expected to appear. If I try to add arguments inside the set of closing parentheses, emacs actually color them in red to signal that this is not easily readable.
http://dept-info.labri.u-bordeaux.fr/~idurand/enseignement/PFS/Common/Strandh-Tutorial/indentation.html http://dept-info.labri.u-bordeaux.fr/~idurand/enseignement/P...