Tabs are EVIL *and* STUPID, end of discussion. (Re: Tabs versus Spaces in Source Code)

Dave Hansen iddw at hotmail.com
Wed May 17 14:53:18 EDT 2006


On Wed, 17 May 2006 17:28:26 GMT in comp.lang.python, Edward Elliott
<nobody at 127.0.0.1> wrote:

>Sybren Stuvel wrote:
>
>> Andy Sy enlightened us with:
>>> Like I said, you'll *NEVER* get that fancy shmancy 'semantic
>>> indentation' idea to work properly in the most basic utilities which
>>> have the 8-space tabs assumption hardcoded in them.
>> 
>> Fair enough. How much code is viewed with less and cat, and how much
>> is viewed using smart viewers/editors? I think the majority is viewed
>> using the latter.
>
>Just for the sake of completeness:
>
>cat file |sed 's/\t/    /g'

That doesn't always work.  If you don't see why, you don't understand
my objection to TAB characters in text files.

>less -x4 file

That will work.  As long as the creator of file used four-space TABs,
anyway...

Regards,
                                        -=Dave

-- 
Change is inevitable, progress is not.



More information about the Python-list mailing list