PyCon: Evangelizing Python
Posted Mar 30, 2013 18:44 UTC (Sat) by
smurf (subscriber, #17840)
In reply to:
PyCon: Evangelizing Python by thoeme
Parent article:
PyCon: Evangelizing Python
Why should Python's indentation be a problem?
You use indentation in pretty much every other high-level programming language, otherwise you won't understand your code tomorrow.
The only difference is that Python uses the indents directly, while most other languages require redundant clutter like braces or BEGIN-END keywords to tell the compiler what to do.
Related to this, about everybody I know has written (or debugged) at least one piece of interesting C code like
if (foo)
if (bar)
baz();
else
quux();
You simply don't get to make these mistakes in Python.
Interestingly, the idea of indentation as primary syntax seems to spread to other contexts.
Cf. CoffeeScript or HAML.
(
Log in to post comments)