Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Ronald Chmara
On Oct 17, 2008, at 3:53 AM, Nathan Rixham wrote: *A Simpler Solution* Force userland / general naming conventions in PHP. # namespaces are always lowercase # functions are always lowercase # classes are always CamelCaps with initial uppercase letter enforced thus: //this is always the functi

Re: [PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Steph Fox
I'm just a mere user, but if we go for other namespace separator (be it ::: or :> or anything else), then I'd rather see it used both between namespace and class/function/constant name *and* between namespace parts. OK, so maybe I should explain one little thing about the significance of those

Re: [PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Ryan Panning
Paweł Stradomski wrote: W liście Ryan Panning z dnia piątek 17 października 2008: Request Autoload Gets Type --- A::B:>C A::B:>C Class A::B:>func() A::BNamespace A::B:>C::CONST A::B:>C

Re: [PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Paweł Stradomski
W liście Ryan Panning z dnia piątek 17 października 2008: > Request              Autoload Gets   Type > --- > A::B:>C              A::B:>C         Class > A::B:>func()         A::B            Namespace > A::B:>C::CONST       A::B:>C         Class > A::B::

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Greg Beaver
Stanislav Malyshev wrote: > Hi! > >> This is not what is proposed. The E_WARNING is *only* on a name >> conflict. Please re-read or try the patch: >> >> http://pear.php.net/~greg/resolve_conflict.patch.txt > > I see the patch is doing zend_fetch_class, which autoloads. So > autoloading on each

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Greg Beaver
Stefan Walk wrote: > On Friday 17 October 2008 04:02:32 Gregory Beaver wrote: >> Hi Stas, >> >> This is not what is proposed. The E_WARNING is *only* on a name >> conflict. Please re-read or try the patch: >> >> http://pear.php.net/~greg/resolve_conflict.patch.txt >> >> Greg > > Any particular r

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Josh Davis
2008/10/17 Mike Willbanks <[EMAIL PROTECTED]>: > 1. #3 - it is much cleaner to read than the other implementations in > resolving the conflict. a different separator will be much harder to simply > see from a comparison. I beg to differ. A different separator (namespace scope resolution operator)

[PHP-DEV] Final 'sanity tally' for Greg's proposals (only)

2008-10-17 Thread Steph Fox
OK, this is what we have. Please don't send any more votes on this now :) NameIssue AIssue B == Greg#2 (alt #3, #1)Yes Guilherme #3 Yes Kalle

[PHP-DEV] Fw: my last attempt at sanity with namespaces

2008-10-17 Thread Steph Fox
... and this poll is now closed. Thanks Aaron! - Steph - Original Message - From: "Aaron Wormus" <[EMAIL PROTECTED]> Newsgroups: php.internals To: "Greg Beaver" <[EMAIL PROTECTED]> Sent: Friday, October 17, 2008 6:12 PM Subject: Re: my last attempt at sanity with namespaces From the

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Stan Vassilev | FM
Regarding internal class resolving, it seems logical but will slow down resolution within namespaces. But I doubt this is much of an issue as it doesn't affect those not using namespaces. I don't think that makes sense to say "it doesn't affect people not using namespaces" when talking about na

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Mike Willbanks
1. #3 - it is much cleaner to read than the other implementations in resolving the conflict. a different separator will be much harder to simply see from a comparison. in a state where many people are in fact doing code reviews and as it gets larger into big business the easier to read is going t

Re: [PHP-DEV] Namespace issues

2008-10-17 Thread William A. Rowe, Jr.
Marcel Esser wrote: > Using ::: as a namespace seperator would be great. A general rule of telephony dialing and other data input, three of the same character will too often be entered or recognized as two or four characters due to user or mechanical error. That's why when you see mnemonic phone

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Steph Fox
Hi Stas, So far, my proposals hardly got any hearing at all, fair or otherwise - they were totally ignored on the vote - never even mentioned except for the note in Greg's wiki (which, despite being incorrect, was never fixed or changed), and it looks like at least some of the persons were und

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Stanislav Malyshev
Hi! cut-and-dried answer by tonight or forget it. Then it was pointed out to me that Stas' proposal wasn't getting a fair hearing. Then it turned out So far, my proposals hardly got any hearing at all, fair or otherwise - they were totally ignored on the vote - never even mentioned except fo

Re: [PHP-DEV] following http://wiki.php.net/rfc/namespaceissues

2008-10-17 Thread Cristian Rodríguez
stef-com escribió: > Hi > My vote is option 1 please. "use ::: as separator between namespace name > and element" Ok, but please dont send your post with a "reading confirmation request"... Thank you, -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Ro

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Stanislav Malyshev
Hi! This is not what is proposed. The E_WARNING is *only* on a name conflict. Please re-read or try the patch: http://pear.php.net/~greg/resolve_conflict.patch.txt I see the patch is doing zend_fetch_class, which autoloads. So autoloading on each call to namespace function? -- Stanislav M

Re: [PHP-DEV] following http://wiki.php.net/rfc/namespaceissues

2008-10-17 Thread Steph Fox
My vote is option 1 please. "use ::: as separator between namespace name and element" That's #2 :) Please clarify. Also - please (briefly) explain why. - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] following http://wiki.php.net/rfc/namespaceissues

2008-10-17 Thread stef-com
Hi My vote is option 1 please. "use ::: as separator between namespace name and element" Thanks, bye S.L. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Steph Fox
Seems everyone is going for #3 ... I'm with the crowd. +1 on #3. OK, this isn't a good reason. Please try to treat this poll with some seriousness. The voting patterns became skewed from here on, so the poll's still 5 votes away from completion because I can't sanely use wildcard votes. Wo

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Stefan Walk
On Friday 17 October 2008 04:02:32 Gregory Beaver wrote: > Hi Stas, > > This is not what is proposed. The E_WARNING is *only* on a name > conflict. Please re-read or try the patch: > > http://pear.php.net/~greg/resolve_conflict.patch.txt > > Greg Any particular reason why it defaults to seeing i

Re: [PHP-DEV] Re: Vote from a "Mere User"

2008-10-17 Thread Erik Schulz
Issue A: #3 Issue B: +1 for Greg's suggestion On Fri, Oct 17, 2008 at 8:06 AM, Mikael Forsberg <[EMAIL PROTECTED]> wrote: > Another one. > > Issue A: #3 > Issue B: +1 for Greg's suggestion > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/uns

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Pierre Joye
hi, All references are now updated, in http://qa.php.net http://bugs.php.net and http://snaps.php.net Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Catalin Zamfir Alexandru | KIT Software CAZ
Seems everyone is going for #3 ... I'm with the crowd. +1 on #3. > -Original Message- > From: Steph Fox [mailto:[EMAIL PROTECTED] > Sent: Friday, October 17, 2008 6:40 PM > To: Daniel Brown; Chris Stockton > Cc: Lukas Kahwe Smith; [EMAIL PROTECTED]; internal

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Steph Fox
Hi Daniel, There are about six total concurrent threads on this right now. Would it make sense to create an OFFICIAL voting thread and *only* count new votes posted to that thread from now until the fifty-vote mark? Otherwise it seems that it introduces more confusion into an already loaded iss

[PHP-DEV] Ответ: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Arvids Godjuks
My vote is for option #3 and for Gregs proposal too. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Nate Tallman
+1 #3 On Fri, Oct 17, 2008 at 9:35 AM, Ryan Panning <[EMAIL PROTECTED]> wrote: > Greg Beaver wrote: > >> Hi, >> >> http://wiki.php.net/rfc/namespaceissues >> >> Read it and discuss. Let's be clear people: the technical problems in >> namespaces are limited and solvable. The problems in the poli

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Daniel Brown
On Fri, Oct 17, 2008 at 11:08 AM, Chris Stockton <[EMAIL PROTECTED]> wrote: >> I'm going to stop this tally at 50 responses. That should be enough to show >> us where people generally are coming from. There are about six total concurrent threads on this right now. Would it make sense to create

[PHP-DEV] Re: Vote from a "Mere User"

2008-10-17 Thread Mikael Forsberg
Another one. Issue A: #3 Issue B: +1 for Greg's suggestion -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Chris Stockton
I would like to vote for #3. On Fri, Oct 17, 2008 at 7:42 AM, Steph Fox <[EMAIL PROTECTED]> wrote: > Hi Lukas, > > We are not ready yet. So for now I will not force a decision just yet. >> Hopefully next week ... >> > > I'm going to stop this tally at 50 responses. That should be enough to show

[PHP-DEV] Fw: namespaceissues

2008-10-17 Thread Steph Fox
Another one who can't get through... - Original Message - From: "Ken Guest" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 17, 2008 3:37 PM Subject: Fwd: namespaceissues -- Forwarded message -- From: Ken Guest <[EMAIL PROTECTED]> Date: Fri, Oct 17,

[PHP-DEV] Re: Vote from a "Mere User"

2008-10-17 Thread Nate Abele
Yet another user, also with a reasonably significant project currently using namespaces: Issue A: #3 Issue B: +1 for Greg's suggestion Again, just a user, please feel free to disregard. - Nate -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/u

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Steph Fox
Hi Lukas, We are not ready yet. So for now I will not force a decision just yet. Hopefully next week ... I'm going to stop this tally at 50 responses. That should be enough to show us where people generally are coming from. - Steph -- PHP Internals - PHP Runtime Development Mailing List T

[PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Ryan Panning
Greg Beaver wrote: Hi, http://wiki.php.net/rfc/namespaceissues Read it and discuss. Let's be clear people: the technical problems in namespaces are limited and solvable. The problems in the political environment surrounding them may not be. Wouldn't politics be a stupid-ass reason to remove

[PHP-DEV] Namespace issues

2008-10-17 Thread Marcel Esser
Using ::: as a namespace seperator would be great. --- Marcel Esser, Technical Lead Croscon, LLC http://www.croscon.com --- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/un

[PHP-DEV] Namespace Voting

2008-10-17 Thread Chuck Burgess
Issue A: #2, alternate #3, least #1 Issue B: Yes -- CRB

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Benjamin Schulz
+1 for #3 ("use namespace" or "use class") Regards, Benjamin On 15.10.2008, at 22:35, Greg Beaver wrote: Hi, http://wiki.php.net/rfc/namespaceissues Read it and discuss. Let's be clear people: the technical problems in namespaces are limited and solvable. The problems in the political envi

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Guilherme Blanco
Pierre, Is there something I need to do in snaps code? BTW... if you want me to directly update source (and get it), I think I'll need karma for that... I know I have for PHPWEB. I'll be in São Paulo on CONISLI this weekend, but I can definately do something beginning next week. Cheers, On Fri

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Lester Caine
Lukas Kahwe Smith wrote: From now on I will simply stop to read any post from you as long as there is uppercase words in it. It is annoying, respectless and does not make your point any better. I make no apologies for formatting text as I see fit. It would have been very useful if you had sim

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Vesselin Kenashkov
AFAIK the classes and the namespaces both are case insensitive. This means a major change (to make them to be kept in a sensitive way) and will break the code that depends on the insensibility. IMHO - bad idea. And besides the casing usially is used to enforce good coding practices, not language fe

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Derick Rethans
On Fri, 17 Oct 2008, Nathan Rixham wrote: > thoughts, opinions, reasons why it wouldn't work? Posts like this want me to shutdown this list, start a new one, hide it, and make it invite only. Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.o

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Ron Rademaker
Nathan Rixham wrote: thus: //this is always the function two in namespace one::step one::step::two(); //this is always the method two of class step in namespace one one::Step::two(); thoughts, opinions, reasons why it wouldn't work? Though: this will break a awful lot of existing code Opinion

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Lukas Kahwe Smith
On 17.10.2008, at 12:28, Lester Caine wrote: Pierre Joye wrote: From now on I will simply stop to read any post from you as long as there is uppercase words in it. It is annoying, respectless and does not make your point any better. I make no apologies for formatting text as I see fit. It w

[PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Nathan Rixham
*The Problem (as defined by Greg):* foo.php: main.php: *A Simpler Solution* Force userland / general naming conventions in PHP. # namespaces are always lowercase # functions are always lowercase # classes are always CamelCaps with initial uppercase letter enforced thus: //this is always th

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Lester Caine
Pierre Joye wrote: From now on I will simply stop to read any post from you as long as there is uppercase words in it. It is annoying, respectless and does not make your point any better. I make no apologies for formatting text as I see fit. It would have been very useful if you had simply co

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Holografix
Hi Pierre Thank you very much. I was looking for it in hhtp://snaps.php.net and it's outdated - last 5.2.x in August, 06. As many people only know snaps.php.net maybe you or someone with proper rights could update it. regards holo ""Pierre Joye"" <[EMAIL PROTECTED]> escreveu na mensagem news:

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Pierre Joye
hi Lester, On Fri, Oct 17, 2008 at 11:28 AM, Lester Caine <[EMAIL PROTECTED]> wrote: > Pierre not sure when http://windows.php.net/snapshots/ appeared but who do > we need to kick to perhaps get a link to it on http://snaps.php.net/ THAT is > the site that is currently linked to everywhere when

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Lester Caine
Pierre Joye wrote: hi, On Fri, Oct 17, 2008 at 11:00 AM, Holografix <[EMAIL PROTECTED]> wrote: Hi. It's have been a week since 5.2.7RC1 and there is no Windows version yet. Maybe someone could fix the snapshot buildings. It is fixed since long and works (http://windows.php.net/snapshots/). H

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Richard Quadling
2008/10/17 Pierre Joye <[EMAIL PROTECTED]>: > hi, > > On Fri, Oct 17, 2008 at 11:00 AM, Holografix <[EMAIL PROTECTED]> wrote: >> Hi. >> It's have been a week since 5.2.7RC1 and there is no Windows version yet. >> Maybe someone could fix the snapshot buildings. > > It is fixed since long and works

Re: [PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Pierre Joye
hi, On Fri, Oct 17, 2008 at 11:00 AM, Holografix <[EMAIL PROTECTED]> wrote: > Hi. > It's have been a week since 5.2.7RC1 and there is no Windows version yet. > Maybe someone could fix the snapshot buildings. It is fixed since long and works (http://windows.php.net/snapshots/). However, this rele

[PHP-DEV] Re: PHP 5.2.7RC1 Testing

2008-10-17 Thread Holografix
Hi. It's have been a week since 5.2.7RC1 and there is no Windows version yet. Maybe someone could fix the snapshot buildings. regards holo "Ilia Alshanetsky" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > The first release candidate of 5.2.7 was just released for testing and

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Karsten Dambekalns
Hi. Sorry for yet another OT post in this thread. Josh Davis wrote: I have a question about 3. Where in a script can you use the "use" statement? Could it be used inside conditionals? For example, if ($testing) { use class testing::PDO; } else { use class ::PDO; } I hope this is a ba

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Larry Garfield
On Wednesday 15 October 2008 3:35:11 pm Greg Beaver wrote: > Hi, > > http://wiki.php.net/rfc/namespaceissues For the first point, #1 but with a less eyestrain-causing separator than :::. Easy for both humans and compilers to tell the difference at any point without referring back to the top of