Just a couple of quick notes...
I think that your proposal looks good, but I'd like to suggest a few
changes. First of all, I'd like to see the association with integers
removed. An enum instance shouldn't just be a name for an integer, it
should be more like a singleton instance of a special
Hi,
2012/2/24 Rasmus Schultz ras...@mindplay.dk
Enum-values absolutely must translate to a scalar value, probably an int -
otherwise, how would you map an enum to a database, or submit it's value
via a form
Strongly agree
I'm not sure what would be the value of a dedicated enum in PHP - I
Message-
From: Samuel Deal [mailto:samuel.d...@gmail.com]
Sent: Friday, February 24, 2012 11:41 AM
To: Rasmus Schultz
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 - Issue
2561
Hi,
2012/2/24 Rasmus Schultz ras...@mindplay.dk
Enum-values
2012/2/24 Dmitri Snytkine dsnytk...@ultralogistics.com
In order to intoduce the enum into php, 'enum' will have to be a keyword
like 'class', 'interface', etc.
Just a thought, but could there be a problem with using the new keyword
'enum' in php. I don't think it's currently a reserved
On 24/02/12 17:46, Dmitri Snytkine wrote:
In order to intoduce the enum into php, 'enum' will have to be a keyword like
'class', 'interface', etc.
Just a thought, but could there be a problem with using the new keyword
'enum' in php. I don't think it's currently a reserved word, so it