Daniel Wong
Posts: 2
Nickname: danielx
Registered: Apr, 2005
|
|
Re: Myths About Indentation in Python
|
Posted: Oct 27, 2007 6:21 PM
|
|
This article brings up some good points for people who knock Python's indentation without having experienced what a joy they are to work with. I tend to find the most skepticism from those who are steeped in the ways of C style languages and have come to believe the use of curly braces is "the right way" to delimit blocks. In my case, my love for Python is really a reaction against C style languages, which are oblivious to the fact that humans have a difficult time matching braces but have no trouble at all interpreting indentation. That's why good C style include consistent indentation. My point is, if authors are already taking on the responsibility of ensuring good indentation, why add the burden of also ensuring proper bracing?
While I'm sure there are many articles that expound on the virtues of Python's indentation, this article does not do much to address those benefits. That's somewhat disappointing to me because the use of indentation was one of the reasons I fell in love with Python in the first place. If I were trying to sell Python to a friend who seemed to be stuck on the use of indentation in Python, I would first argue for the benefits of indentation vs. matched delimiters. Then, I would make the points brought up in this article.
|
|