John H. Robinson, IV wrote:
> Christopher Smith wrote:
>   
>> James G. Sack (jim) wrote:
>>     
>>> I religiously avoid embedding TAB is any text.
>>>
>>>       
>> I of course *know* you are totally wrong about TAB, but I'd settle for a 
>> language that just chose a side and forced everyone to stick with one 
>> way. Python's approach let's them mix and it's just a recipe for disaster.
>>     
>
> I agree Python's approach is wrong. Whitespace should not be
> syntactically significant, outside of separating tokens.
>
> I understand the only two valid arguments:
> 1) If you remove the braces from the different bracing style, you are
>    left with Python-mandated indenting.
> 2) There is no question which IF block the ELSE is associated with.
>   
There is a third valid argument: the eye of the reader tends to
"believe" whitespace is significant; more significant than braces (which
is why people use whitespace in the first place). So, rather than fight
that, let it mean what the eye thinks it means and you improve readability.

The problem comes from cases where people use a mix of tabs and spaces,
particularly if there are non-standard tab sizes to deal with. Then what
the eye sees and what the compiler see don't match again.

--Chris

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to