ANN: Dao Language v.0.9.6-beta is release!

Steven D'Aprano steve at REMOVETHIScyber.com.au
Fri Dec 9 23:54:44 EST 2005


On Fri, 09 Dec 2005 02:59:44 -0600, D H wrote:

> Fredrik Lundh wrote:
>> Zeljko Vrba wrote:
>> 
>> 
>>>But look at the following example:
>>>
>>>if a:
>>>  some_code1
>>>if b:
>>>  some_code2
>>>
>>>If I accidentaly delete if b:, then some_code2 gets under the if a: which is
>>>not intended.
>> 
>> 
>> not to mention that if you have
>> 
>>     if a:
>>         some_code1
>>         some_code2
>> 
>> and accidentally remove some_code2, it won't be executed at all !
>> 
>> do you often remove code by accident?  is this some vi-specific problem ?
>> 
> 
> If you had bothered to read the context he was merely showing an example
> to prove that this is not entirely true:
> "Making a mistake in indentation level is precisely analogous to leaving 
> out markers in other languages."

Pardon me, but how is deleting code equivalent to making a mistake in
indentation level? Is there some editor where if you hit tab too few
or too many times it deletes the previous line?



-- 
Steven.




More information about the Python-list mailing list