[OT] Auto code reformating / one coding style enforcment.
kris
foo at bar.com
Sun Aug 13 08:58:20 PDT 2006
renox wrote:
> 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..
yes; you're right
>
> 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