Re: Ruby's symbols
| From: | Rasmus Lerdorf | Date: | Sat, 05 Jan 2013 23:32:11 +0000 |
| Subject: | Re: Ruby's symbols | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64569@lists.php.net to get a copy of this message | ||
On 01/05/2013 03:29 PM, Kris Craig wrote:
> In both cases, we really don't care what the actual values of brown, black,
> and purple are. We just want it to be unique so we can reference each of
> them in a visually friendly way with minimal performance impact. That's
> where I could see a valid use-case for Ruby-like symbols in PHP.
What you are describing is just an enum. That's not really what Ruby
symbols are about.
-Rasmus