[OT] Auto code reformating / one coding style enforcment.

renox renosky at free.fr
Sun Aug 13 01:20:34 PDT 2006


kris wrote:
> Python uses syntactically significant indentation (for blocks), instead 
> of braces. Because of that, the language attracts a lot of flack from 
> various quarters.

Note that one reason that Python get some flacks as dawid ciezarkiewicz 
rightly put it is that it doesn't enforce *enough* the syntax: blanks 
and tabs are 'equivalent', which makes a mess when you have various 
contributors..

If a language enforce 'syntactically significant indentation', it should 
  also enforce the use of tab instead of space for example.

Of course if one programmer is dumb enough to align with space, you 
could look for the error in the code for hours without finding the 
error, but this is easy to avoid: the compiler/interpreter should 
complain each time he see '4 space' or a tabulation depending of the 
choice of the delimiter.

Regards,
RenoX



More information about the Digitalmars-d mailing list