doublep / iter2

Reimplementation of Elisp generators
GNU General Public License v3.0
9 stars 3 forks source link

Use `iter2--pp-to-string` for all tracing output #4

Open telotortium opened 2 years ago

telotortium commented 2 years ago

Make the output of this much easier to read for complex functions.

See #3

doublep commented 2 years ago

General idea is fine, but parameter indent-by of iter2--pp-to-string is used to indent subsequent lines so that they align nicely with the first line. E.g. in (format "FORM: %s" (iter2--pp-to-string form 60 6)) number 6 is the length of string "FORM: ". So, in places where you add calls to the function 6 is likely not correct.

Also, you'd need to make sure that the tests pass. If needed, you can adjust the tests rather than the code, they are supposed to assert expected output, not be fixed in stone.