3 ms·
Shouldn't tools take care of that before a commit to svn, git, etc? Java has formatters, the Go language has one. Do any exist for Python or Perl?
by melling 16y ago
Shouldn't tools take care of that before a commit to svn, git, etc? Java has formatters, the Go language has one.
Do any exist for Python or Perl?
- edanm 16y agoTake care of indentation, you mean? 1. People don't indent consistently. There are a lot of (imo, pointless) arguments about where to place the braces, etc. One of the advantages of the language forcing a style is that arguments about it are no longer necessary. 2. Why should tools be taking care of this? People indent to understand the code better. Everyone agrees that you have to do it. So what's the problem with the language forcing you to do it? I'd rather it be part of the language than an external tool enforcing it.