Arc Forumnew | comments | leaders | submitlogin
1 point by shader 5420 days ago | link | parent

'src is very helpful, I use it all the time.

However, using the code from the source file is not always possible as you may have typed it in from the repl, or that file may have changed.

Also, many people may not actually indent their code properly, and 'src presumably should provide some sort of standardization.

The only reason that I can think of for reading the text directly from the source file would be that you would get all of the comments as well, not just the docstrings.

So far the ppr function indents the code surprisingly well, and I've actually used it sometimes to figure out how I should be indenting my code ;)