[GRASS-dev] Tabs and spaces in C code

Glynn Clements glynn at gclements.plus.com
Thu Aug 21 08:42:06 PDT 2014


Vaclav Petras wrote:

> You need to have 8 spaces tabs for the files to look correct.

So? Tabs *are* 8 columns. Just like pi = 3.14159..., c = 299792458 m/s,
etc. This isn't a matter of preference.

Sure, some text editors allow you to configure their interpretation of
tabs. But equally you can just modify the value of M_PI in your
system's <math.h>. Either way, your code isn't going to be much use to
anyone else, and other people's code isn't going to be much use to you.

If someone has their editor configured to something other than
8-column tabs, that's their problem, not ours.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list