Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Kalle Sommer Nielsen
Hello Christian 2010/8/10 Christian Kaps : >  Hi, > > is there any reason why no namespace separator constant exists in PHP. I > have many cases where I concatenate strings to a namespace. This ends up > with many class constants like const NS_SEPARATOR = '\\'. A default PHP > constant would be a

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Christian Kaps
Am 10.08.2010 22:07, schrieb Brian Moon: > On 8/10/10 3:03 PM, Ferenc Kovacs wrote: >> like DIRECTORY_SEPARATOR I guess >> >> Tyrael > > but, DIRECTORY_SEPARATOR is system dependent. The namespace separator > is not. It is is always \. > OK. This is clear. -- PHP Internals - PHP Runtime Develop

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Brian Moon
On 8/10/10 3:03 PM, Ferenc Kovacs wrote: like DIRECTORY_SEPARATOR I guess Tyrael but, DIRECTORY_SEPARATOR is system dependent. The namespace separator is not. It is is always \. -- Brian. http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubs

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Ferenc Kovacs
On Tue, Aug 10, 2010 at 9:59 PM, Daniel Egeberg wrote: > On Tue, Aug 10, 2010 at 21:56, Christian Kaps > wrote: > > Hi, > > > > is there any reason why no namespace separator constant exists in PHP. I > > have many cases where I concatenate strings to a namespace. This ends up > > with many clas

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Daniel Egeberg
On Tue, Aug 10, 2010 at 21:56, Christian Kaps wrote: >  Hi, > > is there any reason why no namespace separator constant exists in PHP. I > have many cases where I concatenate strings to a namespace. This ends up > with many class constants like const NS_SEPARATOR = '\\'. A default PHP > constant w

[PHP-DEV] Namespace separator constant

2010-08-10 Thread Christian Kaps
Hi, is there any reason why no namespace separator constant exists in PHP. I have many cases where I concatenate strings to a namespace. This ends up with many class constants like const NS_SEPARATOR = '\\'. A default PHP constant would be a better way to handle such cases. Greetings, Christian

Re: [PHP-DEV] Namespace separator in Zend tests

2008-11-10 Thread Felipe Pena
Hi, Em Seg, 2008-11-10 às 15:51 +0100, Timm Friebe escreveu: > Hi, > easy one: Two of the namespace tests in Zend/tests don't use the new ns > separator yet: > > http://sitten-polizei.de/php/zend-test-ns-separator.diff > > - Timm Opsss :) Thanks Timm! -- Regards, Felipe Pena -- PHP Int

[PHP-DEV] Namespace separator in Zend tests

2008-11-10 Thread Timm Friebe
Hi, easy one: Two of the namespace tests in Zend/tests don't use the new ns separator yet: http://sitten-polizei.de/php/zend-test-ns-separator.diff - Timm -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] namespace separator and whining

2008-11-08 Thread Greg Beaver
Marshall Greenblatt wrote: > Hi Stas, and All, > > I understand that there is a strong desire for this thread to be dead. > However, after reading this and all related threads and wiki, I find that > one item is still unclear, at least to me. > > On Mon, Oct 27, 2008 at 6:27 PM, Stanislav Malyshe

Re: [PHP-DEV] namespace separator and whining

2008-11-05 Thread Stanislav Malyshev
Hi! Well, its not like the person is getting Y when he is expecting X. Both classes have the same name after all, so there is some relation between They don't have the same name - two classes can't have the same name. And "relation" is definitely not enough - you really do not want to get g

Re: [PHP-DEV] namespace separator and whining

2008-11-05 Thread Stanislav Malyshev
Hi! ok, they have the same non fully qualified named. That's why we should have unambiguous resolution mechanism. You propose to add one ambiguity on top of another. want to get generic \Exception instead of \My\Very\Specific\Exception - it would probably break all your error handling. t

Re: [PHP-DEV] namespace separator and whining

2008-11-05 Thread Lukas Kahwe Smith
On 05.11.2008, at 21:24, Stanislav Malyshev wrote: Hi! Well, its not like the person is getting Y when he is expecting X. Both classes have the same name after all, so there is some relation between They don't have the same name - two classes can't have the same name. And "relation" is

Re: [PHP-DEV] namespace separator and whining

2008-11-05 Thread Greg Beaver
Lukas Kahwe Smith wrote: > > On 05.11.2008, at 01:05, Stanislav Malyshev wrote: > >> Hi! >> >>> or in other words give the user the ability to specify when he wants >>> the >>> fallback to global and not doing a fallback to global per default. >>> That way >> >> This would be quite complex thing si

Re: [PHP-DEV] namespace separator and whining

2008-11-05 Thread Lukas Kahwe Smith
On 05.11.2008, at 01:05, Stanislav Malyshev wrote: Hi! or in other words give the user the ability to specify when he wants the fallback to global and not doing a fallback to global per default. That way This would be quite complex thing since this way you can't be sure which class get

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Stan Vassilev | FM
Note that I say "try internal" because the only purpose behind allowing this is to make it easier to use PHP's built-in functionality. Any userspace stuff should be specifically \prefixed or imported via use. And (yes) we need import for functions. Greg P.S. my mail server has been down for

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Stanislav Malyshev
Hi! or in other words give the user the ability to specify when he wants the fallback to global and not doing a fallback to global per default. That way This would be quite complex thing since this way you can't be sure which class gets loaded when you say, e.g., Exception - and thus, if you

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Marcus Boerger
Hello Gregory, Tuesday, November 4, 2008, 5:15:35 PM, you wrote: > Christian Schneider wrote: >> Lukas Kahwe Smith wrote: >>> one could also do >>> 1) ns >>> 2) global >>> 3) autoload >> >> I'm in favour of this (if it avoids performance problems) as I don't see >> a problem with giving global p

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Marcus Boerger
Hello Lukas, Wednesday, November 5, 2008, 12:32:19 AM, you wrote: > On 05.11.2008, at 00:12, Marcus Boerger wrote: >>> classes: >>> 1) try ns::class >>> 2) autoload ns::class >>> 3) fail >> >> Since we can stack autoload we could provide a c-level autoload >> function >> that does the default

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Lukas Kahwe Smith
On 05.11.2008, at 00:12, Marcus Boerger wrote: classes: 1) try ns::class 2) autoload ns::class 3) fail Since we can stack autoload we could provide a c-level autoload function that does the default lookup. function global_autoload($name) { if (($p = strrpos($name, '\\')) !== false) { $

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
As you pointed out, there is no autoload for functions, so people are accustomed to ensuring that all functions are loaded before usage. Am I missing something? Yes - you're missing the possibility of overriding, AKA naming collisions between internal and userspace funcs/consts. - Steph -

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Lukas Kahwe Smith
On 04.11.2008, at 18:59, Gregory Beaver wrote: #2 means we want to be able to access stuff like strlen() and array_map() without any monkey business. functions/constants: 1) ns\func or ns\const 2) internal func\const 3) FAILBOAT Right, for the most part people will want access to intern

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Rodrigo Saboya
Steph Fox wrote: IT will break the code from everybody who doesn'T expect such a flag exists and the average application user won't know and jsut see errors which "randomly" occur. Erm, how is that going to happen? This is basically a tighter setting that can *optionally* be used and should *

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
Hi Greg, By doing the resolution I've suggested (and Stas, incidentally, was the first to suggest this): classes: 1) ns\class 2) autoload ns\class 3) FAILBOAT functions/constants: 1) ns\func or ns\const 2) internal func\const 3) FAILBOAT We get the best of #1 and the best of #2, and it makes

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
Hi Stefan, Dev writes a script, uses autoload, overrides global class. > Distributed to user, that has ns.lookup=On as you propose, user borks > his > install, lacks the file containing the class, gets the global class -> > obscure error messages because of nonexisting methods in places > unr

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Gregory Beaver
Lukas Kahwe Smith wrote: > > On 04.11.2008, at 17:15, Gregory Beaver wrote: > >> In other words, it is perfectly all right to have a different name >> resolution for classes than we have for functions and constants because >> of this different expectation. It is dangerous to fallback for classes

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Johannes Schlüter
On Tue, 2008-11-04 at 16:48 +, Steph Fox wrote: > >> What am I missing? > > > > That INI is the worst we could do. Because it prevents from writing > > portable code. > > This particular INI doesn't prevent anyone writing portable code. It simply > gives the option of a 'tighter' development

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Stefan Walk
On Tuesday 04 November 2008 18:27:43 Steph Fox wrote: > Hi Stefan, > > > Dev writes a script, uses autoload, overrides global class. > > Distributed to user, that has ns.lookup=On as you propose, user borks his > > install, lacks the file containing the class, gets the global class -> > > obscure e

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
Hi Stefan, Dev writes a script, uses autoload, overrides global class. Distributed to user, that has ns.lookup=On as you propose, user borks his install, lacks the file containing the class, gets the global class -> obscure error messages because of nonexisting methods in places unrelated to t

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Stefan Walk
On Tuesday 04 November 2008 17:44:50 Steph Fox wrote: > We could have an INI_SYSTEM switch. > > ns.lookup=Off > > means you _have_ to prefix because otherwise resolution will fail with a > fatal error, but > > ns.lookup=On > > means that anything not prefixed and not local goes through the full > l

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
IT will break the code from everybody who doesn'T expect such a flag exists and the average application user won't know and jsut see errors which "randomly" occur. Erm, how is that going to happen? This is basically a tighter setting that can *optionally* be used and should *always* be used in

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
What am I missing? That INI is the worst we could do. Because it prevents from writing portable code. This particular INI doesn't prevent anyone writing portable code. It simply gives the option of a 'tighter' development mode. - Steph -- PHP Internals - PHP Runtime Development Mailing Li

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Marcus Boerger
Hello Steph, Tuesday, November 4, 2008, 5:44:50 PM, you wrote: > Hi Greg, all, >> For this reason, the only resolution that we should be considering is: >> >> classes: >> 1) try ns::class >> 2) autoload ns::class >> 3) fail >> >> functions/constants: >> 1) try ns::function/ns::const >> 2) try in

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Steph Fox
Hi Greg, all, For this reason, the only resolution that we should be considering is: classes: 1) try ns::class 2) autoload ns::class 3) fail functions/constants: 1) try ns::function/ns::const 2) try internal function/const 3) fail. I see this as giving priority to library authors rather than

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Lukas Kahwe Smith
On 04.11.2008, at 17:15, Gregory Beaver wrote: In other words, it is perfectly all right to have a different name resolution for classes than we have for functions and constants because of this different expectation. It is dangerous to fallback for classes prior to autoload, but it is not

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Gregory Beaver
Christian Schneider wrote: > Lukas Kahwe Smith wrote: >> one could also do >> 1) ns >> 2) global >> 3) autoload > > I'm in favour of this (if it avoids performance problems) as I don't see > a problem with giving global priority over autoload. Hi, This is the current name resolution. The proble

[PHP-DEV] Namespace separator

2008-11-04 Thread Marcus Boerger
Hello Internals, with many thanks to Greg we now have settled on \ as the namespace separator. The next topic on the agenda is name resolution: http://wiki.php.net/rfc/namespaceresolution Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Christian Schneider
Lukas Kahwe Smith wrote: > one could also do > 1) ns > 2) global > 3) autoload I'm in favour of this (if it avoids performance problems) as I don't see a problem with giving global priority over autoload. - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: htt

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Lukas Kahwe Smith
On 31.10.2008, at 19:02, Lukas Kahwe Smith wrote: Hi I have tried to collect the various opinions on resolution order into a single RFC: http://wiki.php.net/rfc/namespaceresolution Proactive damage control: I have also included some discussion on how the removable of function/constants w

Re: [PHP-DEV] namespace separator and whining

2008-10-31 Thread Lukas Kahwe Smith
Hi I have tried to collect the various opinions on resolution order into a single RFC: http://wiki.php.net/rfc/namespaceresolution Proactive damage control: I have also included some discussion on how the removable of function/ constants would affect the question of namespace resolution orde

Re: [PHP-DEV] namespace separator and whining

2008-10-28 Thread Stanislav Malyshev
Hi! What, if any, performance penalty should we expect with the proposed namespace changes when executing existing code that does not use namespaces? Do we need to change existing namespace-free code in order If you don't use namespaces, none I guess (well, compiling would be a little slow

Re: [PHP-DEV] namespace separator and whining

2008-10-28 Thread Marcus Boerger
Hello Greg, thanks for finalizing this. marcus Sunday, October 26, 2008, 4:37:37 PM, you wrote: > Hi all, > Let me make this brief: there will be lots of complaining about the > namespace separator. > Stop. Now. > It serves no possible useful purpose. If you want to discuss why this > wa

Re: [PHP-DEV] namespace separator hits slashdot

2008-10-28 Thread Marcus Boerger
Hello marius, typical slashdot php artical. 'PHP is the worst crap ever - god bless perl' The issue in this case is a confused user. See other mails to do it right and an archive of thousands of mails discussing the topic (and no, I am not kidding about that amount). And I have more personal

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Marshall Greenblatt
Hi Stas, and All, I understand that there is a strong desire for this thread to be dead. However, after reading this and all related threads and wiki, I find that one item is still unclear, at least to me. On Mon, Oct 27, 2008 at 6:27 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > And how

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Greg Beaver
Josh Davis wrote: > 2008/10/27 Stanislav Malyshev <[EMAIL PROTECTED]>: > >> 1) check for namespaced\classname >> 2) try to autoload namespaced\classname >> 3) fail > > Ok, that makes some sense wrt your position, which I originally > interpreted as namespace/internal/autoload. > > You want to fo

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Lukas Kahwe Smith
On 27.10.2008, at 23:27, Stanislav Malyshev wrote: this is how PHP got its huge userbase. we let people grow with their needs. And how exactly it serves the needs of people by secretly making their applications orders of magnitude slower, and then saying "oh, that's because you failed to

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stanislav Malyshev
Hi! just the same reason as you can use a constant without initialization. out of the box PHP does not try to be a teacher. it lets you write you Constant without initialization doesn't lead to any problems. This one does. this is how PHP got its huge userbase. we let people grow with the

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Lukas Kahwe Smith
On 27.10.2008, at 23:01, Stanislav Malyshev wrote: Hi! this seems like a very good idea to me. this way things default to "just work" (which imho is the PHP spirit), while its brain dead easy to detect misuse. They not "just work" - they "work" in a wrong way (not usable in any practic

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stanislav Malyshev
Hi! this seems like a very good idea to me. this way things default to "just work" (which imho is the PHP spirit), while its brain dead easy to detect misuse. They not "just work" - they "work" in a wrong way (not usable in any practical application). And E_NOTICE is a non-solution here - i

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Lukas Kahwe Smith
On 27.10.2008, at 22:27, Sean Coates wrote: You want to force users to use the full name at all times. IOW, you want to sacrifice convenience for performance. (chiming in because it seems that we're overlooking something obvious here) If it comes down to this, I'd prefer to see an E_NOTI

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Sean Coates
You want to force users to use the full name at all times. IOW, you want to sacrifice convenience for performance. (chiming in because it seems that we're overlooking something obvious here) If it comes down to this, I'd prefer to see an E_NOTICE for the "bad performance" use, though I do

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Josh Davis
2008/10/27 Stanislav Malyshev <[EMAIL PROTECTED]>: > 1) check for namespaced\classname > 2) try to autoload namespaced\classname > 3) fail Ok, that makes some sense wrt your position, which I originally interpreted as namespace/internal/autoload. You want to force users to use the full name at a

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stanislav Malyshev
Hi! 1) check for namespaced\classname 2) try to autoload namespaced\classname 3) check for internal classname How would you reorder those? 1) check for namespaced\classname 2) try to autoload namespaced\classname 3) fail ...but didn't you say "one time is enough"? According to your own log

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Josh Davis
2008/10/27 Stanislav Malyshev <[EMAIL PROTECTED]>: >> Then, if we assume that most people will use the global namespace >> without prefixing it, what would be the best resolution order for >> them? (you didn't mention it in your previous message) > > Using the prefixed names. I'm sorry but I stil

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stanislav Malyshev
Hi! Then, if we assume that most people will use the global namespace without prefixing it, what would be the best resolution order for them? (you didn't mention it in your previous message) Using the prefixed names. People who care about performance are supposed to profile their code... I g

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Josh Davis
2008/10/27 Stanislav Malyshev <[EMAIL PROTECTED]>: > Actually, one time is enough, as it can bring an application from > essentially zero disk accesses (with bytecode caching) to multiple disk > accesses (to traverse full include path to exhaust all autoloading > capabilities). So we're talking a

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stan Vassilev | FM
It doesn't take a lot to kill an application if using internal class causes __autoload to run for a non-existing user class. Neither caches not optimizations can avoid that, as you can't have something cached which doesn't exist. In my autoloader for example, an existing user class is resolve

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stanislav Malyshev
Hi! - you use an internal class many, many times (as the overhead from a handful of invocations would be negligible) Actually, one time is enough, as it can bring an application from essentially zero disk accesses (with bytecode caching) to multiple disk accesses (to traverse full include pa

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Josh Davis
2008/10/27 Rodrigo Saboya <[EMAIL PROTECTED]>: > I agree with Stas. It's better to force people to actually reference their > classes/functions/constants correctly and get better performance than > getting unclear slowdowns. If I'm not mistaken, you only experience any noticeable slowdown if all o

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Rodrigo Saboya
Stanislav Malyshev wrote: Hi! 1) check for namespaced\classname 2) try to autoload namespaced\classname 3) check for internal classname That's the wrong way to do it - it means every time you mention the internal class name without prefixing it with \ you get exhaustive autoloading search a

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Stanislav Malyshev
Hi! 1) check for namespaced\classname 2) try to autoload namespaced\classname 3) check for internal classname That's the wrong way to do it - it means every time you mention the internal class name without prefixing it with \ you get exhaustive autoloading search and nothing tells you about

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Sebastian Bergmann
Hannes Magnusson schrieb: > What exactly are you expecting other then the various wiki entries > and README.namespaces in CVS? Right, various sources of information that are not neccessarily in sync and/or up to date. -- Sebastian Bergmann http://sebastian-bergmann.de

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Hannes Magnusson
On Mon, Oct 27, 2008 at 15:09, Sebastian Bergmann <[EMAIL PROTECTED]> wrote: > Lukas Kahwe Smith schrieb: >> Now the people that were not able to attend this IRC meeting can >> either accept that there was a sufficient number of people to make >> a final decision on something that everybody (obviou

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Sebastian Bergmann
Greg Beaver schrieb: >> It was mentioned on IRC that internal functions have to be >> prefixed with \ when used in a namespaced file. Without a fallback. > > This is not true, and the unit tests demonstrate that Thank you for clearing this up. > 1) check for namespaced\functionname > 2) check

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Sebastian Bergmann
Greg Beaver schrieb: > I stand by my obvious public intent with the multiple emails, RFCs and > patches I have sent. Just to make it clear: I appreciate your effort and work on namespaces, but AFAICS there is no single/complete RFC, only bits and pieces (problems with the current implementation

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Sebastian Bergmann
Lukas Kahwe Smith schrieb: > Now the people that were not able to attend this IRC meeting can > either accept that there was a sufficient number of people to make > a final decision on something that everybody (obviously also people > who did not attend the meeting) had plenty of time to make the

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Greg Beaver
William A. Rowe, Jr. wrote: > Greg Beaver wrote: > >> Hi all, >> >> Let me make this brief: there will be lots of complaining about the >> namespace separator. >> >> Stop. Now. >> > > And if you had the common decency not to change the thread-id and subject > some on this list might respec

[PHP-DEV] namespace separator hits slashdot

2008-10-27 Thread marius popa
Now you can read the funny comments http://developers.slashdot.org/developers/08/10/26/1610259.shtml another thing about it is that if you search for namespace separator on google it gives you php related discussions so it must be something important http://www.google.com/search?q=namespace sepa

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread William A. Rowe, Jr.
William A. Rowe, Jr. wrote: > Greg Beaver wrote: >> Hi all, >> >> Let me make this brief: there will be lots of complaining about the >> namespace separator. >> >> Stop. Now. > > And if you had the common decency not to change the thread-id and subject > some on this list might respect the spirit

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread William A. Rowe, Jr.
Greg Beaver wrote: > Hi all, > > Let me make this brief: there will be lots of complaining about the > namespace separator. > > Stop. Now. And if you had the common decency not to change the thread-id and subject some on this list might respect the spirit of your plea. -- PHP Internals - PHP

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Steph Fox
Yes, it does not mean that I was able to actually attend the meeting. Because... oh wait. It wasn't important to you. OK OK I'm not going to push this publicly. Just pointing out that most of us keep irc logs. Preaching by example. I didn't want to push this publicly, Pierre. Remember tha

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Steph Fox
Hi, I'm not sure what's the hell is going on with you and Step, OK, Pierre. You got us. Greg and I have been secret lovers for the last 5 years and we've been planning to take over php.net the whole of that time. but if we can't answer to any of your mails without being accused of personal

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Pierre Joye
hi Greg, On Sun, Oct 26, 2008 at 3:01 PM, Greg Beaver <[EMAIL PROTECTED]> wrote: > Go ahead and attack my character if you feel it serves some purpose and > benefits PHP. I on the other hand will continue to post actual > solutions, patches and discuss them. I'm not sure what's the hell is goin

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Pierre Joye
On Sun, Oct 26, 2008 at 2:37 PM, Steph Fox <[EMAIL PROTECTED]> wrote: > Hey Pierre, > >>> You were actually online throughout it, and were notified that it was >>> happening at the start. In fact you were the first person to blog the >>> outcome of the meeting. >> >> "I'm" always online, bot/proxy.

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Greg Beaver
Pierre Joye wrote: > @Greg and Steph: Private discussions are bad. Or are you trying to say > that this list can't be used as a discussion platform (even heated)? > If we like to have a developer only list, let do it, but keep things > in the public area, that's the only way to keep our decision p

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Hannes Magnusson
On Sun, Oct 26, 2008 at 22:19, Pierre Joye <[EMAIL PROTECTED]> wrote: > To make my point more clear: I respect the decision even if I'm not > completely happy about it As do I. So lets kill this thread, unless you want the cool slashdot guys to post more FUD referencing this thread. -Hannes --

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Pierre Joye
On Sun, Oct 26, 2008 at 2:24 PM, Steph Fox <[EMAIL PROTECTED]> wrote: > Hi Pierre, > >> Excuse me but while the idea to have an online meeting was great, >> sending a mail to ask to attend an online meeting 24 hours before and >> on a Friday was not a wised choice. I would have participated too if

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Lukas Kahwe Smith
On 26.10.2008, at 22:19, Pierre Joye wrote: To make my point more clear: I respect the decision even if I'm not completely happy about it (that's what we call a compromise). But my comment to Greg and Steph was about the danger of abusing of private discussions not about having held this meetin

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Steph Fox
Hi Pierre, Excuse me but while the idea to have an online meeting was great, sending a mail to ask to attend an online meeting 24 hours before and on a Friday was not a wised choice. I would have participated too if it was during this week or the next weekend. You were actually online througho

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Pierre Joye
On Sun, Oct 26, 2008 at 2:11 PM, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > As was evident from the discussions in the past weeks, a lot of people > commented, most of which did not spend the necessary time to actually > understand the issues at hand. Given that it did indeed make it impossible

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Lukas Kahwe Smith
On 26.10.2008, at 21:59, Pierre Joye wrote: Hi Lukas, On Sun, Oct 26, 2008 at 11:28 AM, Lukas Kahwe Smith <[EMAIL PROTECTED] > wrote: Sebastian, you have not participated in the discussion so far. Now you post a rumor you picked up on IRC into an already heated situation. You do know full

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Pierre Joye
Hi Lukas, On Sun, Oct 26, 2008 at 11:28 AM, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > Sebastian, you have not participated in the discussion so far. Now you post > a rumor you picked up on IRC into an already heated situation. You do know > full well that it does not require you to point out

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Greg Beaver
Sebastian Bergmann wrote: > Greg Beaver wrote: >> The decision is made, now I suggest everyone get busy actually trying >> it out. > > How are we supposed to try it out? There is no updated implementation > yet, and I would rather discuss a specification instead. As Steph pointed out, I toiled

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Steph Fox
And I must agree with Sebastian: How do you test something that isn't even implemented yet? :D You apply the 'rough draft' patch against PHP_5_3 :D http://pear.php.net/~greg/backslash.sep.patch.txt As referenced in the original rfc for the backslash approach cited at http://wiki.php.net/rfc/n

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Jani Taskinen
Lukas Kahwe Smith wrote: On 26.10.2008, at 19:07, Sebastian Bergmann wrote: Greg Beaver wrote: The decision is made, now I suggest everyone get busy actually trying it out. How are we supposed to try it out? There is no updated implementation yet, and I would rather discuss a specification in

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Lukas Kahwe Smith
On 26.10.2008, at 19:07, Sebastian Bergmann wrote: Greg Beaver wrote: The decision is made, now I suggest everyone get busy actually trying it out. How are we supposed to try it out? There is no updated implementation yet, and I would rather discuss a specification instead. It was mentioned

Re: [PHP-DEV] namespace separator and whining

2008-10-26 Thread Sebastian Bergmann
Greg Beaver wrote: > The decision is made, now I suggest everyone get busy actually trying > it out. How are we supposed to try it out? There is no updated implementation yet, and I would rather discuss a specification instead. It was mentioned on IRC that internal functions have to be prefixe

[PHP-DEV] namespace separator and whining

2008-10-26 Thread Greg Beaver
Hi all, Let me make this brief: there will be lots of complaining about the namespace separator. Stop. Now. It serves no possible useful purpose. If you want to discuss why this was chosen or suggest alternatives, feel free to write me *off-list*. I would be more than happy to answer any ques

Re: [PHP-DEV] namespace separator poll, update

2005-12-03 Thread Jasper Bryant-Greene
Joseph Crawford wrote: i vote against ! and \ ! i would have to say <- or <: would be the one's i would be most comfortable and less confused using. Although I did originally like <-, it's impossible because it already has meaning, as "less than the negative value of". -- Jasper Bryant-Green

Re: [PHP-DEV] namespace separator poll, update

2005-12-03 Thread Joseph Crawford
i vote against ! and \ ! i would have to say <- or <: would be the one's i would be most comfortable and less confused using. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]

Re: [PHP-DEV] namespace separator poll, update

2005-12-03 Thread André Luis Ferreira da Silva Bacci
Andrei Zmievski wrote: Gah! I have to squint and count the colons in something like System:::Socket:::Pair::open(). Yikes. My vote is for \. And for ... System!Socket!Pair::open(); $x = $y?nsx!const:nxy!const; // $x = $y ? nsx!const : nxy!const; []s André AE -- PHP Internals - PHP Runt

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Marcus Boerger
Hello Oliver, just once again for the record: :: is *not* working. marcus Monday, November 28, 2005, 2:52:50 PM, you wrote: > Stanislav Malyshev schrieb: >> OG>>BUT the discussion is not only about possibility but also about what you >> OG>>would like. The ":" for example would work if mandat

RE: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Israel Alpert
er 28, 2005 11:38 AM To: Stanislav Malyshev Cc: Oliver Grätz; internals@lists.php.net Subject: Re: [PHP-DEV] namespace separator poll, update Stanislav Malyshev wrote: > OG>>BUT the discussion is not only about possibility but also about > OG>>what you would like. The ":"

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sara Golemon
> namespace1}{Date::myfunction(); > namespace2}{Date::Otherfunction(); > For the same reason that ;; isn't doable (and worse actually). echo "The Baz constant in the Bar class of the Foo namespace is: {Foo}{Bar::Baz}, or is it? Don'tcha hate tokens with multiple meanings?"; -- PHP Internals - P

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Alexander Wirtz
In every email is a signature at the end of the post: PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php If you use the correct email-ad

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sebastian
ew On 11/28/05, Bart de Boer <[EMAIL PROTECTED]> wrote: > I'm sorry if I say stupid stuff. My previous post actually was the first > post I've ever made to a newsgroup! Please bare with me while I adjust > to the etiquettes. :) > > Anyway. Somebody has probably already suggested this. But how abou

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Bart de Boer
I'm sorry if I say stupid stuff. My previous post actually was the first post I've ever made to a newsgroup! Please bare with me while I adjust to the etiquettes. :) Anyway. Somebody has probably already suggested this. But how about: namespace1}{Date::myfunction(); namespace2}{Date::Otherfunc

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Greg Beaver
Stanislav Malyshev wrote: OG>>BUT the discussion is not only about possibility but also about what you OG>>would like. The ":" for example would work if mandatory whitespace would OG>>be introduced for the ternary BUT this is very very bad. If my vote is counted (not that I asked for it :) then

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sean Coates
> How about ;; then? > name1;;name2::myfunction(); PLEASE, MAKE IT STOP! ;; is already perfectly valid syntax: [EMAIL PROTECTED]:~$ php5 -r 'define("name1",FALSE); class name2{function myfunction(){ echo "foo\n"; }} name1;;name2::myfunction();' foo * Pre-existing operators are out of the question

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Bart de Boer
Well, the problem is: '->' isn't used for classes. It's used for objects! An object is an instance of a class. '~>' Would be more appropriate if there would be such a thing as an instance of a namespace. But not for accessing the namespace itself. (In my opinion) This is why I think it should

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sebastian
It's used for shell execution stuff. Perl did something similar and quickly regretted it On 11/28/05, Marian Kostadinov <[EMAIL PROTECTED]> wrote: > Is ` (back quote) suitable for namespace separator? I cannot remember > just now if it was used somewhere. > > 2005/11/28, Ron Korving <[EMAIL PROTE

  1   2   >