Roman Borschel wrote:
I don't agree with that. I think multiple namespaces per file would be
fine with the current syntax as this is a feature that would not be used
by that many people and if it's used it's not for development purposes
(who wants to read a class bundle with no comments, linebreaks etc.?)
and therefore the readability/consistency doesn't matter much.
It's not that I don't like braces but imho its not a necessity to move
to braces just to allow multiple namespaces in a file.
Roman
On Dec 6, 2007, at 1:34 PM, David Zülke wrote:
Am 06.12.2007 um 04:22 schrieb Jeremy Privett:
I know I just finished praising you just some hours ago, Stas, but
I'm going to have to step in and agree with Larry on this one. It
really doesn't make sense for there to be no braces for namespaces
(especially if you're going to allow multiple per file). A namespace
is a logical grouping of classes/functions and other constructs of
this type in PHP use braces. That is very confusing syntax when
compared to other areas of the language.
+1. If we allow multiple namespaces per file, then braces are an
absolute must for consistency IMO.
David
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
1: Braces
2: No Braces
3: Either
If this was a question of braces or no braces, then there would be no
competition; braces would win hands down. Thus I'd move that it should
be taken for granted that braces will be there, and move on to debating
whether they be optional or not..
Thoughts?
Nathan
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php