Re: Re: Clarification on the Enum language structure
| From: | Stas Malyshev | Date: | Fri, 18 Feb 2011 20:35:59 +0000 |
| Subject: | Re: Re: Clarification on the Enum language structure | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51469@lists.php.net to get a copy of this message | ||
Hi!
I should comment on why people want strings as enum values - just look at ENUM type in MySQL. People use it, and if you take a look from that perspective - it makes sense.Enum type in the database is totally different because it's a constraint, not an alias to some underlying piece of data like enums in many programming languages. I think enforcing such constraint in PHP would be quite complicated. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227