Python scoping

Steven D. Majewski sdm7g at virginia.edu
Thu Oct 26 15:06:57 EDT 2000


On Tue, 24 Oct 2000, Joshua Muskovitz wrote:

> > this tends to diminish the number of lines in a "scope", and thus
> > optimizes for the chance that both ends are simultaneously visible
> > on a single page, does it not ?
> 
> Driving without my headlights at night tends to diminish my overall speed
> and distance I prefer to travel, but it doesn't make my life easier or
> safer, does it?

 If programming languages used enforced redundancy so that brace-block
structure and indentation block structure must agree, then programming
would be safer. 
 A situation where the human eye uses indentation and the compiler
uses braces is unsafe. 
 If you aren't going to enforce redundancy, then you have a choice: 
make humans adapt to the compiler, or make the compilers adapt to
human perception. 
 I think python made the better & safer choice. 

---|  Steven D. Majewski   (804-982-0831)  <sdm7g at Virginia.EDU>  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia             Health Sciences Center  |---
---|  P.O. Box 10011            Charlottesville, VA  22906-0011  |---
		"All operating systems want to be unix, 
		 All programming languages want to be lisp." 





More information about the Python-list mailing list