Re: Use C99 designated initializers for some structs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use C99 designated initializers for some structs
Дата
Msg-id 27632.1535666005@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Use C99 designated initializers for some structs  (Mark Dilger <hornschnorter@gmail.com>)
Список pgsql-hackers
Mark Dilger <hornschnorter@gmail.com> writes:
> I tried doing this perhaps a year ago, and there are a few files with arrays
> of structs whose representations get much larger when you change the format
> in this way.  For instance, in guc.c:
> ...
> What should the general rule be for initializing arrays of structs such as these?

I'd argue that there is no reason to convert initializers except where
it's a clear notational win.  If it isn't, leaving things alone will
be less of a maintenance problem.

            regards, tom lane


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