Re: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Ángel González
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

Re: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Samuel Deal
2012/2/24 Dmitri Snytkine > 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 could > potentia

RE: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Dmitri Snytkine
cs.com "A Top 100 Logistics I.T. Provider in 2011" -Original 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

Re: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Samuel Deal
Hi, 2012/2/24 Rasmus Schultz > > 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 think > enum