Re: Bikeshedding on enum vocabulary

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Aidan Van Dyk <aidan(at)highrise(dot)ca>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bikeshedding on enum vocabulary
Date: 2010-10-27 16:24:41
Message-ID: 1D40F263-3A26-4E1B-B5FC-59DFB6C13035@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Brendan Jurd 2010-10-27 16:41:53 Re: add label to enum syntax
Previous Message David E. Wheeler 2010-10-27 16:19:51 Re: add label to enum syntax