Re: [HACKERS] Source code format vote

Поиск
Список
Период
Сортировка
От darcy@druid.net (D'Arcy J.M. Cain)
Тема Re: [HACKERS] Source code format vote
Дата
Msg-id m125JcS-000AUUC@druid.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Source code format vote  (Vince Vielhaber <vev@michvhf.com>)
Ответы Re: [HACKERS] Source code format vote  (Vince Vielhaber <vev@michvhf.com>)
Список pgsql-hackers
Thus spake Vince Vielhaber
> Ok, this is probably a really dumb question and probably even been answered
> before but I missed it.  Why not make a tab be a tab and however it appears
> in the end programmer's editor can be up to the programmer?  Or is pgindent
> changing tabs to spaces?

Not a dumb question at all.  However, think about comments.  Look at
this example.
i++;    /* This variable is being incremented.  I am commenting *         * this because it is such a stupid variable
name        */
 

Under my editor that comment lines up nicely but it will look cockeyed
for many people reading this because I used tabs instead of spaces and
my tabs are 4, not the usual 8.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: [HACKERS] Source code format vote
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Source code format vote