Hi!

> I'm still a total newb when it comes to Ruby, but as I understand it, a
> symbol can be particularly helpful by maximizing code readability
> without sacrificing efficiency.  As a PHP guy, I tend to think of a Ruby
> symbol as a constant that doesn't need to be defined or set.  Its value

String is a constant that doesn't need to be defined of set.

> 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

If you don't care what the values are, why have them at all? What's
wrong with just using "brown", etc.?

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to