Re: Bikeshedding on enum vocabulary

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Bikeshedding on enum vocabulary
Дата
Msg-id 1D40F263-3A26-4E1B-B5FC-59DFB6C13035@kineticode.com
обсуждение исходный текст
Ответ на Bikeshedding on enum vocabulary  (Aidan Van Dyk <aidan@highrise.ca>)
Список pgsql-hackers
On Oct 27, 2010, at 8:16 AM, Aidan Van Dyk wrote:

> Well, as someone coming to enums from a C/C++ background, element is
> the last thing I would have thought.  _My_ scale of intuitiveness is:
> 
> 1) label (my normal vocabulary when talking about enums)
> 2) identifier [constant] (when talking spec-type jargon)
> 
> Never have I thought of the enum label as either a "value", or an
> "element".  That's not to say anyone else hasn't thought of them
> differently.  Obvously ;-)

I suggest "color".

ALTER ENUM hair_colors ADD COLOR 'blue';

Or anything at all.
 ALTER ENUM planets ADD PLANET 'x';

Best,

David, pedaling away after tagging the bikeshed



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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: add label to enum syntax
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: add label to enum syntax