Arc Forumnew | comments | leaders | submitlogin
1 point by CatDancer 3415 days ago | link | parent

Just out of curiosity, and I haven't used 'src since I'm not on Anarki, but for that particular application, I was wondering if it would be useful to show the actual source of the function or macro, as it appears in the original source file?

1 point by shader 3415 days ago | link

'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 ;)