> > I always thought constants were about imposing an
> > unchanging nature to
> > the data and not about visual aesthetics when
> > reading code :/ I too
> > would like to see constant support of non-scalar
> > values.
>
>
> Same here. I have a number of static arrays that I use
> for reference data that are usually encapsulated in a
> function, or a global / session variable. It would be
> very handy to be able to define a constant array
> instead.
>

Whoa... easy, don't go putting words in my mouth...

I never said I wanted constants to allow arrays/objects, just wanted to
understand the reasoning which Andi explained well.  I also had an a-ha
moment over breakfast:  A constant array would require the allowance of
syntax like echo FOO[0];  which is, for my part, ugly.

-Sara

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

Reply via email to