Another salvo in the indentation war? I hope not.

Michael Hudson mwh21 at cam.ac.uk
Sun May 28 17:44:29 EDT 2000


m.faassen at vet.uu.nl (Martijn Faassen) writes:

> If you feed this:
> 
> if (1 == 1) {
>   printf("This won't work.\n");
> }
> 
> To C you'll get compiler errors as well if somebody removes all the '}'s. :)

Only if you forget to delete the '{'.

But if you feed

if (test) {
   printf("a");
   printf("a");
}

to a C compiler before and after deleting all the { and }'s you get
different behaviour, which IMHO is worse.

Cheers,
Michael

-- 
  Famous remarks are very seldom quoted correctly.
                                                    -- Simeon Strunsky



More information about the Python-list mailing list