Re: Bikeshedding on enum vocabulary - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Bikeshedding on enum vocabulary
Date
Msg-id 1D40F263-3A26-4E1B-B5FC-59DFB6C13035@kineticode.com
Whole thread Raw
In response to Bikeshedding on enum vocabulary  (Aidan Van Dyk <aidan@highrise.ca>)
List 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 by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: add label to enum syntax
Next
From: Brendan Jurd
Date:
Subject: Re: add label to enum syntax