discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Standardized indentation?


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Standardized indentation?
Date: Thu, 5 Jun 2008 14:42:26 -0700
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Jun 05, 2008 at 05:03:39PM -0400, Steven Clark wrote:
> I noticed that many gnuradio files (gmsk.py for example) contain an
> unholy mix of spaces and tabs for indentation. Is there any easy way
> to standardize our indentation? Many text editors can make it so
> hitting tab creates 4 spaces instead of the tab character.
> 
>  (I like 4 spaces per indent, what about you guys?)
> 
> http://www.python.org/dev/peps/pep-0008/

I like 4 spaces per indent too.  What I don't like is people who think
that a TAB character in a file should ever expand to anything other
than the next mod-8 boundary ;)

It's the source of much confusion in the new world.

To live happily in the GNU Radio source code universe (python, C++,
assembler, whatever), your editor should be setup so that a TAB
character in the file expands to the next mod-8 boundary.  What
happens when you press the TAB key on the keyboard in your favorite
editor is up to you.  Mine is programmed to "indent correctly" using
the minimum number of characters chosen from the set {SPACE,TAB} ;)
emacs rules!

In summary: we agree about the 4-space indentation per level in
python.  However it's extremely unlikely that we'll modify 200k lines
of code to use only spaces or only tabs in any given file.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]