Greg,

sorry, "behavior" was probably not the right word. In any case, they are different, because the one approach allows users to declare just one namespace, and the other one allows to declare any number of namespaces. That's what I meant. There really is no need for ambiguities like this; the curly braces syntax would be enough.


David


Am 21.08.2007 um 22:05 schrieb Gregory Beaver:

David Zülke wrote:
I think there should be just one way to designate a namespace, not two
different ones with different behaviors.

Hi David,

First, the behaviors are not different, just the syntax. Of course you
can have more than one namespace per file with brackets, but the stuff
within that namespace reacts identically to the other format.

Second, if the consensus is one syntax, I'd say that's not really a big
deal.  Doing so would simply involve removing one line from
zend_language_parser.y, rewording the error message, and dropping the
brackets parameters from zend_do_namespace's proto.  For now, it's
better to investigate the ramifications of the patch first, as this
decision could be made quite easily closer to the first release.

Greg

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



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

Reply via email to