Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-26 Thread Johannes Schlüter
On Tue, 2008-03-25 at 23:35 -0700, Paul Chandler wrote: > Can't both (brackets and non) be supported? NO! This just creates confusion. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-26 Thread Gregory Beaver
Marcus Boerger wrote: > language out there that is in use and has anything like that. And even more > scary to me, you did not solve anything by this because people still could > write code prior to the namespace keyword. So no matter what we are screwed ? [EMAIL PROTECTED]:~/workspace/php5$ cat

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-26 Thread Marcus Boerger
Hello Andi, Wednesday, March 26, 2008, 7:12:18 AM, you wrote: > In general I'd prefer one namespace per-file, at least as a best > practice and common advertised use. For this case it doesn't really > matter too much whether it's with or without brackets. My preference is > without because then y

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-25 Thread Paul Chandler
Can't both (brackets and non) be supported? I have some sick people in my own company that would LOVE if they could embed multiple namespaces in the same file. In circles around my own cubicle, engineers prefer to write one class per namespace, per file, as God intended. Various Perl, Pyth

RE: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-25 Thread Andi Gutmans
In general I'd prefer one namespace per-file, at least as a best practice and common advertised use. For this case it doesn't really matter too much whether it's with or without brackets. My preference is without because then you just stick it at the top and don't have an extra level of indentation

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-25 Thread Lokrain
+1 to multiple namespaces with brackets. Dimitar Isusov

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-25 Thread David Zülke
Same here. Multiple namespaces w/o brackets are just wrong. David Am 25.03.2008 um 02:44 schrieb Ben Ramsey: On 3/23/08 5:05 AM, Sebastian Bergmann wrote: Johannes Schlüter schrieb: I said in some previous post I won't like multiple namespaces per file using the 2nd syntax. So imo: either

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-24 Thread Ben Ramsey
On 3/23/08 5:05 AM, Sebastian Bergmann wrote: Johannes Schlüter schrieb: I said in some previous post I won't like multiple namespaces per file using the 2nd syntax. So imo: either on ns per file and the 2nd syntax or allow multiple and use brackets. And then I prefer the latter. I second tha

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-23 Thread Sebastian Bergmann
Johannes Schlüter schrieb: I said in some previous post I won't like multiple namespaces per file using the 2nd syntax. So imo: either on ns per file and the 2nd syntax or allow multiple and use brackets. And then I prefer the latter. I second that emotion. -- Sebastian Bergmann

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Stanislav Malyshev
Hi! Why can't we stick to consistency ? PHP (classes, functions, I think "consistency" became, as many other previously useful words, to mean "agree with me" on this list, so it's meaningless. Greg? Stas? Dmitry? Could we get a "resume" of the backstage talks you guys spoke about? I'm sure

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Felipe Pena
Em Sáb, 2008-03-22 às 17:19 -0500, Gregory Beaver escreveu: > Felipe Pena wrote: > > Em Sex, 2008-03-21 às 17:01 -0500, Gregory Beaver escreveu: > >>> 1) namespace foo { } > >> This is acceptable if nothing can exist outside namespace foo {} except > >> declare and other namespace declarations. > >

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Gregory Beaver
Felipe Pena wrote: > Em Sex, 2008-03-21 às 17:01 -0500, Gregory Beaver escreveu: >>> 1) namespace foo { } >> This is acceptable if nothing can exist outside namespace foo {} except >> declare and other namespace declarations. >> > > Indeed! > > Here's my try: > http://felipe.ath.cx/diff/namespace

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread David Coallier
Why can't we stick to consistency ? PHP (classes, functions, interfaces, abstracts, etc) are all done the same way. What is the "need" of changing this ? I see reasons like : - I don't like indentatation (Answer to that: PHP must make you quite sad then... and I can't imagine what python makes yo

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Marcus Boerger
Hello Ryan, Saturday, March 22, 2008, 6:50:36 PM, you wrote: > Lars Strojny wrote: >> Hi, >> >> Am Samstag, den 22.03.2008, 16:29 +0100 schrieb Marcus Boerger: >> [...] >>> looks pretty good to me. Let's see what other responses we get by late >>> wedensday. >> >> I like the current syntax and

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Ryan Panning
Lars Strojny wrote: Hi, Am Samstag, den 22.03.2008, 16:29 +0100 schrieb Marcus Boerger: [...] looks pretty good to me. Let's see what other responses we get by late wedensday. I like the current syntax and don't think it is confusing. So -1 for changing it. cu, Lars I'm also -1 on this one

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Lars Strojny
Hi, Am Samstag, den 22.03.2008, 16:29 +0100 schrieb Marcus Boerger: [...] > looks pretty good to me. Let's see what other responses we get by late > wedensday. I like the current syntax and don't think it is confusing. So -1 for changing it. cu, Lars signature.asc Description: Dies ist ein dig

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Marcus Boerger
Hello Felipe, looks pretty good to me. Let's see what other responses we get by late wedensday. marcus Saturday, March 22, 2008, 12:46:08 PM, you wrote: > Em Sex, 2008-03-21 às 17:01 -0500, Gregory Beaver escreveu: >> > 1) namespace foo { } >> >> This is acceptable if nothing can exist outsi

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Felipe Pena
Em Sex, 2008-03-21 às 17:01 -0500, Gregory Beaver escreveu: > > 1) namespace foo { } > > This is acceptable if nothing can exist outside namespace foo {} except > declare and other namespace declarations. > Indeed! Here's my try: http://felipe.ath.cx/diff/namespace.diff http://felipe.ath.cx/dif