|
Re: Myths About Indentation in Python
|
Posted: Sep 26, 2007 6:26 PM
|
|
Although initially ambivalent about the use of indentation, I now am strongly pro-indentation (for block delimiting). In fact I'd say other languages should adopt it!
We will perhaps eventually be writing only small modules which are identified by name as they are used to build larger ones, so that devices like indentation, rather than delimiters, might become feasible for expressing local structure in the source language. –Donald E. Knuth, “Structured Programming with goto Statements”, Computing Surveys, Vol 6 No 4, Dec. 1974
After Python, whenever I use languages that use delimiters, it seems I'm doing extra work to appease the machine. Not to mention, decreasing readability and increasing the chances of human error. Delimiters are machine friendly, but indentation is user-friendly. Come to think of it, I never use delimiters for blocks in anything meant strictly for human consumption, but I do use indentation.
|
|