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

Steve Holden steve at holdenweb.com
Sat Dec 10 04:01:14 EST 2005


Zeljko Vrba wrote:
> On 2005-12-08, Steven D'Aprano <steve at REMOVETHIScyber.com.au> wrote:
> 
>>Making a mistake in indentation level is precisely analogous to leaving
>>out markers in other languages. If your editor is smart enough, and the
>>
> 
> 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. With braces (or other delimiters):
> 
> if(a) {
>   some_code1;
> }
> if(b) {
>   some_code2;
> }
> 
> if I delete if(b) I get a syntax error about unmatched braces. IMO, the "right"
> way to handle braces in C is always to  include them, even when they are not
> technically obligatory. I code like that for a long time and it has saved me
> a lot of headache. 

My advice would be to stop using punch cards and start using a sensible 
text editor. Your use case is somewhat unconvincing in the 21st century.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list