3 ms·
>Python forces the indent to match the semantics. It sounds great in theory, but it leads to problems in practice. If you copy and paste code from any language
by mrfredward 8y ago
>Python forces the indent to match the semantics.
It sounds great in theory, but it leads to problems in practice. If you copy and paste code from any language with C style syntax, it's trivial to fix the formatting based on where the braces are, and your editor can help. With python, testing a 10 line example program from a forum post can turn out to be quite difficult. Not to mention, if a tab character ends up anywhere in your program, you now have a syntax error that's completely invisible to the eye. Lastly, it makes it difficult to have clean syntax for multi-line statements.