Quote:
|
Originally Posted by MBirchmeier
The biggest problem with this the formatting of lines in a more advanced editor (VS) tabs can be insertted automatically or (EMACS) be replaced with spaces. Although this would usually be a minor cosmetic issue, when it comes a compiler issue, making a quick change, then submitting to source control can become a larger hassle than it should be.
|
Honestly, I think this is more of a theoretical problem than a practical one. If we assume that all good programmers indent blocks consistantly, then the only problem that remains is mixing tabs and spaces. Any decent editor will give you the option of coverting tabs to spaces, which would be sufficient to solve your problem.
And even if you forget, the moment the Python interpreter compiles your code into bytecode, it'll flag up an indentation error. A 10 second search and replace and the problem is corrected. Mixing tabs and spaces in the same block is sufficiently rare (and not good practice anyway), and sufficiently easy to fix, that it becomes a none issue.
Or, to look at it another way, how often do you miss out a semicolon on a line? I can count the number of times I've messed up the indentation in Python on one hand. The number of times I've forgotten a semicolon, or missed off an ending bracket, must number in the hundreds by now
