RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
when it was first tried in the early 5.0 development. Bob Silva > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Monday, November 28, 2005 2:43 PM > To: Bob Silva > Cc: 'Jessie Hernandez'; internals@lists.php.net > Subject: Re: [PHP-DEV]

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bart de Boer
Have a fresh look :) name1:::name2:::class::func(); name1::name2::class::func(); name1\name2\class::func(); I think there are way too many dots with ':::'. Looking at this example I must say '\' looks cleanest. And it's the most intuitive since namespaces are sort of like directories anywa

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
ms with > > implementation... thanks for an explanation. > > > Bob > > > -Original Message----- > > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 28, 2005 12:26 PM > > To: Jessie Hernandez > > Cc: internals@lists.p

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
for an explanation. > Bob > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Monday, November 28, 2005 12:26 PM > To: Jessie Hernandez > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out &

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
Hello Markus, Monday, November 28, 2005, 11:22:03 PM, you wrote: > Marcus Boerger wrote: >> Hello Stanislav, >> Monday, November 28, 2005, 9:10:55 PM, you wrote: >>>Why should it be final? Extending it won't do any problem AFAIU. >> >> If it is not final you could derive the config class and th

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Markus Fischer
Marcus Boerger wrote: Hello Stanislav, Monday, November 28, 2005, 9:10:55 PM, you wrote: Why should it be final? Extending it won't do any problem AFAIU. If it is not final you could derive the config class and then instanciate it. Static classes which nicely fit into configuration stuff can n

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
5 12:26 PM > To: Jessie Hernandez > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out > there) > > Hello Jessie, > > yes and no. During 5.0 development i had private and protected inheritance > already and we vo

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
05 12:26 PM To: Jessie Hernandez Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) Hello Jessie, yes and no. During 5.0 development i had private and protected inheritance already and we voted against them. So i think we would vote ag

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
, November 28, 2005 11:55 AM To: Stanislav Malyshev Cc: 'PHP internals' Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) Hello Stanislav, easy changing of behavior in classes of a namespace by only changing one value for instance. namespace Foo { cons

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Dmitry Stogov
Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Monday, November 28, 2005 11:23 PM > To: Dmitry Stogov > Cc: 'Bob Silva'; 'Christian Schneider'; 'PHP internals' > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands > of

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
Hello Jessie, yes and no. During 5.0 development i had private and protected inheritance already and we voted against them. So i think we would vote against private classes in namespaces as well. regards marcus Monday, November 28, 2005, 9:19:32 PM, you wrote: > Marcus, > In my patch, you ca

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
om: Marcus Boerger [mailto:[EMAIL PROTECTED] >> Sent: Monday, November 28, 2005 10:15 PM >> To: Dmitry Stogov >> Cc: 'Bob Silva'; 'Christian Schneider'; 'PHP internals' >> Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands >>

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
Marcus, In my patch, you can define the class as "private" inside the namespace, so it could only be derived by classes inside the same namespace (using/instantiating outside will trigger an error). This might solve your problem. Regards, Jessie "Marcus Boerger" <[EMAIL PROTECTED]> wrote in m

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
> From: Marcus Boerger [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 28, 2005 10:15 PM > > To: Dmitry Stogov > > Cc: 'Bob Silva'; 'Christian Schneider'; 'PHP internals' > > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousan

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Stanislav Malyshev
MB>>If it is not final you could derive the config class and then MB>>instanciate it. Static classes which nicely fit into configuration MB>>stuff can never be instanciated. I see you point, though I don't see any disaster if someone derives and instantiates config class either. -- Stanislav M

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
Hello Stanislav, Monday, November 28, 2005, 9:10:55 PM, you wrote: MB>>>'Config' or 'Setup' or alike then. But if i'd do that i'd be missing MB>>>features like static classes the php workaround would be 'abstract MB>>>final class'. Only: > Why should it be final? Extending it won't do any pr

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Dmitry Stogov
cus Boerger [mailto:[EMAIL PROTECTED] > Sent: Monday, November 28, 2005 10:15 PM > To: Dmitry Stogov > Cc: 'Bob Silva'; 'Christian Schneider'; 'PHP internals' > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands > of apps out there) > > &

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Stanislav Malyshev
MB>>'Config' or 'Setup' or alike then. But if i'd do that i'd be missing MB>>features like static classes the php workaround would be 'abstract MB>>final class'. Only: Why should it be final? Extending it won't do any problem AFAIU. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTE

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
Hello Stanislav, nothing really. I only think that it is easier to have the consts in the namespace then in an extra class. I probably would call the class 'Config' or 'Setup' or alike then. But if i'd do that i'd be missing features like static classes the php workaround would be 'abstract

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
Hello Stanislav, even if we wouldn't allow them the users would get conflicts in their brains sooner or later. On the other hand \ has a clear visible split meaning. That is all the namespace operator must have besides not causing any conflict in the parser or human brains. Btw, during paris me

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
Hello Marcus, "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Stanislav, > > easy changing of behavior in classes of a namespace by only changing one > value for instance. > > namespace Foo > { >const XYZ = 42; > >class Bar >{ > const =

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Stanislav Malyshev
MB>>namespace Foo MB>>{ class Behaviour { MB>> const XYZ = 42; } MB>> class Bar MB>> { MB>> const = Foo::XYZ; const = Behaviour::XYZ; MB>> //... MB>> } etc. What's wrong with that? Except for the fact that now you can move these classes to another namespace if you wan

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
Hello Stanislav, easy changing of behavior in classes of a namespace by only changing one value for instance. namespace Foo { const XYZ = 42; class Bar { const = Foo::XYZ; //... } class Baz { const = Foo::XYZ; //... } } marcus Monday, Novem

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Stanislav Malyshev
MB>>brains sooner or later. On the other hand \ has a clear visible split MB>>meaning. That is all the namespace operator must have besides not Yes, except that it is used as escape character in a dozen of languages or more and automatically recognized as such by any experienced programmer, who

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Stanislav Malyshev
MB>> your patch wasn't complete. There are conflicts as soon as you have MB>>subnamespaces or constsants. You mean namespace contsants? I don't think they are needed. You can always define utility class for them if you want. As for subnamespaces, which I think also not necessary anyway, I don't

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Marcus Boerger
ry. >> -Original Message- >> From: Marcus Boerger [mailto:[EMAIL PROTECTED] >> Sent: Saturday, November 26, 2005 3:42 PM >> To: Bob Silva >> Cc: 'Christian Schneider'; 'PHP internals' >> Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to br

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
> > Bob Silva > > > -Original Message----- > From: Jessie Hernandez [mailto:[EMAIL PROTECTED] > Sent: Monday, November 28, 2005 8:03 AM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out > there) > > Dmitry,

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
ch will ever be accepted if we don't have agreement of what namespaces should do and not do. Bob Silva -Original Message- From: Jessie Hernandez [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 8:03 AM To: internals@lists.php.net Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Jessie Hernandez
ks with "::" and doesn't break any scripts. > > Dmitry. > > > -Original Message- > > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > > Sent: Saturday, November 26, 2005 3:42 PM > > To: Bob Silva > > Cc: 'Christian Schneider'; &#x

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread David Zülke
3:42 PM To: Bob Silva Cc: 'Christian Schneider'; 'PHP internals' Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) Hello Bob, it is only awkward because you want to turn php into c++. We are a different language here and thus can chose any separ

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Dmitry Stogov
so be it, but I think > alternatives with > > some level of compromise should be considered before \ is settled > > upon. It's just plain awkward IMO. > > > > Bob Silva > > > >> -----Original Message- > >> From: Christian S

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Oliver Grätz
Markus Fischer schrieb: > Kevin Brown wrote: > >>The only scripts that would break (far from "trillions") here would be >>those where you had a space-less ternary statement comparing two >>constants (NOT namespace constants -- they don't even exist yet), as >>in the following case: >> >>define('fo

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Jani Taskinen
On Sat, 26 Nov 2005, Ilia Alshanetsky wrote: I'd prefer ::: over \ for a namespace operator, even though it is bordering on the "too-long" limit. Well, how often you think it's used in a script? If there will be namespaces, I'd prefer ::: too. --Jani -- PHP Internals - PHP Runti

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Markus Fischer
Kevin Brown wrote: The only scripts that would break (far from "trillions") here would be those where you had a space-less ternary statement comparing two constants (NOT namespace constants -- they don't even exist yet), as in the following case: define('foo','odd'); define('bar','even'); $var =

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Bob Silva
D] > Sent: Saturday, November 26, 2005 1:36 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out > there) > > The only scripts that would break (far from "trillions") here would be > those where you had a space-less ter

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Alan Knowles
this is not entirely true: token : "[WS]+?[WS]+" == conditional if seperater 1 token : "[WS]+:[WS]+" == conditional if seperater 2 token : ":[WS]+" == case/ if ($a == 5): / else: / endif; token : ":" == namespace stuff... eg. adding whitespace around the " : " and declaring that a token, rather t

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Kevin, bla! Saturday, November 26, 2005, 10:35:51 PM, you wrote: > The only scripts that would break (far from "trillions") here would be > those where you had a space-less ternary statement comparing two > constants (NOT namespace constants -- they don't even exist yet), as > in the fol

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Kevin Brown
The only scripts that would break (far from "trillions") here would be those where you had a space-less ternary statement comparing two constants (NOT namespace constants -- they don't even exist yet), as in the following case: define('foo','odd'); define('bar','even'); $var = rand() % 2 == 1 ? fo

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jessie Hernandez
Oops, hit "send" too soon! As you saw, ":-" cannot be used, but ":>" looks like a possibility. Does anyone see anything wrong with this sequence? Personally, I'd prefer ":::", as ":>" looks weird, but then again, it's less typing. I'll put in whatever sequence is most accepted, except of cours

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jessie Hernandez
Hi Oliver, Oliver Grätz wrote: Ilia Alshanetsky schrieb: I'd prefer ::: over \ for a namespace operator, even though it is bordering on the "too-long" limit. What about these: PEAR:>Date PEAR:-Date OLLi I thought of these, but it'll break the following examples: echo ( ( time() % 2

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marian Kostadinov
+1 from me. \ looks ugly ... like escaping something:) On 26/11/05, David Zülke <[EMAIL PROTECTED]> wrote: > This is funny... I was just about to write a mail and propose ":::". > So... +1 from me ;) > > - David > > > Am 26.11.2005 um 21:10 schrieb Jessie Hernandez: > > > All, > > > > What would y

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Oliver Grätz
Ilia Alshanetsky schrieb: > I'd prefer ::: over \ for a namespace operator, even though it is > bordering on the "too-long" limit. What about these: PEAR:>Date PEAR:-Date OLLi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Ilia Alshanetsky
I'd prefer ::: over \ for a namespace operator, even though it is bordering on the "too-long" limit. Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jessie Hernandez
BTW, "::" is out the question (yes, I did try it). It created ambiguity in the case of calling a function in a namespace and calling a method of a class in a namespace: echo a::b::c(); The above can either mean "call function c in namespace b under namespace a" or "call static method c of cla

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread David Zülke
This is funny... I was just about to write a mail and propose ":::". So... +1 from me ;) - David Am 26.11.2005 um 21:10 schrieb Jessie Hernandez: All, What would you say if I managed to solve this problem, but that the solution entailed changing the namespace separator to ":::"? The co

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jessie Hernandez
All, What would you say if I managed to solve this problem, but that the solution entailed changing the namespace separator to ":::"? The code below works fine locally. Is ":::" unacceptable? Personally, I think anything is better than using "\", and ":::" is not bad for me. If not, which ch

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Markus Fischer
Jessie Hernandez wrote: We have two options here: 1) Do not allow constants in namespaces, just stick to functions and classes. 2) Forget about this inconsistency. I understand your point of view, but it seems crazy to me to use "\", an operator that makes absolutely no sense at all and will

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Oliver Grätz
Sebastian Bergmann schrieb: > Marcus Boerger schrieb: > >>And i'd say that people wanting namespaces are the minority. > > > The majority of people using PHP does not know what namespaces are > because they were never in a situation in which they needed them, hence > they do not "want" them.

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jessie Hernandez
Hi Chris, Christian Schneider wrote: From Jessie's statements I was assuming that ONLY in the ternary case you would need whitespaces/parens to disambiguate the expression. That would break way less PHP scripts than, say, a core Date class ;-) Yes, this is true, but still, I wouldn't be

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jessie Hernandez
Hello Oliver, Oliver Grätz wrote: If I read Jessie correctly, the parser will throw an error now if the usage is unclear with the ternary (a:b:c:d). So the real problem is when namespace constants are not used but the parser thinks that he's reading some: $a = ($b)? c:d; Are c and d constants

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Ilia Alshanetsky
No one project follows the same release methodoly, everyone uses what works for them and the community around the project. Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jani Taskinen
On Sat, 26 Nov 2005, Sebastian Bergmann wrote: Marcus Boerger schrieb: And i'd say that people wanting namespaces are the minority. The majority of people using PHP does not know what namespaces are because they were never in a situation in which they needed them, hence they do not "want" th

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jani Taskinen
On Sat, 26 Nov 2005, Sebastian Bergmann wrote: Jani Taskinen schrieb: Like the one you just committed couple of days ago? REVERT! :) I merged the patch in question to the PHP_5_1 branch *after* PHP 5.1.0 had been rolled and *before* the release cycle for PHP 5.1.1 was started. Then you

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Sebastian Bergmann
Marcus Boerger schrieb: > And i'd say that people wanting namespaces are the minority. The majority of people using PHP does not know what namespaces are because they were never in a situation in which they needed them, hence they do not "want" them. -- Sebastian Bergmann

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Sebastian Bergmann
Jani Taskinen schrieb: > Like the one you just committed couple of days ago? REVERT! :) I merged the patch in question to the PHP_5_1 branch *after* PHP 5.1.0 had been rolled and *before* the release cycle for PHP 5.1.1 was started. -- Sebastian Bergmann http://www.sebast

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Christian Schneider
Marcus Boerger wrote: PS: I'd rather have : for namespaces with the whitespace restriction for ? a:x : b:y than the confusing (escaping characters outside of a string?) backslash. And kill trillions of php scripts, how funny. Think before writing. From Jessie's statements I was assuming that

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Hartmut Holzgraefe
Sebastian Kugler wrote: Forcing the use of brackets (instead of whitespaces) only for places where you want to use namespace constants in ternaries is also impossible? exactly -- Hartmut Holzgraefe, Senior Support Engineer. MySQL AB, www.mysql.com -- PHP Internals

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Oliver Grätz
Marcus Boerger schrieb: > Hello Oliver, > > it doesn't matter to the compiler whether it is nonsense or not. > The only thing that matters is whether i can write a correct > lexer/parser for this without breaking stuff. Guys if we were requiring > space around the ternary or anything else we don

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Matthew C. Kavanagh
On Sat, 2005-11-26 at 13:38 +0100, Marcus Boerger wrote: > Hello Christian, > > Saturday, November 26, 2005, 1:42:07 AM, you wrote: > > PS: I'd rather have : for namespaces with the whitespace restriction for > > ? a:x : b:y than the confusing (escaping characters outside of a > > string?) backs

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Greg, we previously shipped a lot of pear classes and now we only ship the installer. Back when we had the pear classes in the main distro i used to test them even though i didn't use any of them. Right now the only stuff i test is stuff i really use and that is a single pear class and tha

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Sebastian Kugler
Hello Marcus, On 11/26/05, Marcus Boerger <[EMAIL PROTECTED]> wrote: > A lexer splits on tokens while white space is optional. If present it > allows separation of tokens. Forcing this would make whitespace a token > which would be very bad. The parser then works on the tokens and doesn't > see an

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Joseph, then why start this discussion over again. Read first, think second. Third write if there is still a need. Regarding second ever used the '.' operator in PHP? And you are Zend certified, damn the test is to easy :-) marcus Saturday, November 26, 2005, 1:48:35 PM, you wrote: > wh

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Sebastian, Saturday, November 26, 2005, 1:46:31 PM, you wrote: > On 11/26/05, Marcus Boerger <[EMAIL PROTECTED]> wrote: >> The only thing that matters is whether i can write a correct >> lexer/parser for this without breaking stuff. > Im no parser expert at all, so just to be sure that I u

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Greg, Saturday, November 26, 2005, 1:20:36 AM, you wrote: > Marcus Boerger wrote: >> Hello Helgi, >> >> obviously one problem is that PEAR does ignore coding standards. Classes >> should be prefixed in both pear and core. And neither Date nor File is in >> any way prefixed. In th end all

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Joseph Crawford
what are the options for the seperator? i have not been watching this topic but is the . out of the question? namespace.class->method(); -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Jani Taskinen
On Sat, 26 Nov 2005, Sebastian Bergmann wrote: I think we should finally stop to commit non-bugfix changes to a release Like the one you just committed couple of days ago? REVERT! :) --Jani -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Sebastian Kugler
On 11/26/05, Marcus Boerger <[EMAIL PROTECTED]> wrote: > The only thing that matters is whether i can write a correct > lexer/parser for this without breaking stuff. Im no parser expert at all, so just to be sure that I understand the problem correctly: I guess you can't distinguish at the parser/

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Gareth, Saturday, November 26, 2005, 2:22:15 AM, you wrote: > Jessie Hernandez wrote: >> Hi Chris, >> >> Christian Schneider wrote: >> >>> >>> PS: I'd rather have : for namespaces with the whitespace restriction >>> for ? a:x : b:y than the confusing (escaping characters outside of a >>

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
PROTECTED] >> Sent: Friday, November 25, 2005 4:42 PM >> To: Marcus Boerger >> Cc: PHP internals >> Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out >> there) >> >> Marcus Boerger wrote: >> > here again namespaces

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Christian, Saturday, November 26, 2005, 1:42:07 AM, you wrote: > Marcus Boerger wrote: >> here again namespaces would be perfect. Given a lib that doesn't prefix >> you'd simply do: >> namespace LibNameHere { reqire "some_lib_include"; } >> and be done...wohooo :-) > Only if newly introd

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Marcus Boerger
Hello Oliver, it doesn't matter to the compiler whether it is nonsense or not. The only thing that matters is whether i can write a correct lexer/parser for this without breaking stuff. Guys if we were requiring space around the ternary or anything else we don't do right now then the damage is m

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Ian P. Christian
On Saturday 26 November 2005 00:36, Rasmus Lerdorf wrote: > I must be missing something. How is switch whitespace sensitive? http://bugs.php.net/bug.php?id=25667 Perhaps you will consider this different. Even so, PHP is pretty much inconsistant all over the place, I don't think having to put s

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Nuno Lopes
Marcus Boerger wrote: here again namespaces would be perfect. Given a lib that doesn't prefix you'd simply do: namespace LibNameHere { reqire "some_lib_include"; } and be done...wohooo :-) Only if newly introduced PHP core classes use a namespace too. You'll have to use PHP\Date (or the like

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Sebastian Bergmann
Rasmus Lerdorf schrieb: > I know it wasn't an intentional thing, but Derick's view that "Gotcha! > It's in 5.1.0 now, so you can't change it" doesn't sit well with me Whether or not Derick did this intentionally and/or for selfish reasons I cannot say (but I do not think so, since it would be un

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Ron Korving
"Jessie Hernandez" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Silva wrote: > >>$x = $y ? foo:bar:baz:stupid; > > > > > > I think "stupid" is the key word here, by forcing the whitespace or (), you > > are making the language itself stupid by not knowing how to parse itself.

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Sorry for the double posts, Thunderbird's been acting weird lately... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Greg Beaver wrote: Jessie Hernandez wrote: 1) Do not allow constants in namespaces, just stick to functions and classes. I am confused as to why we need namespaced constants. Now that we have class constants, this is a far better way to "namespace" constants. I was also under the impressio

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Greg Beaver wrote: Jessie Hernandez wrote: 1) Do not allow constants in namespaces, just stick to functions and classes. I am confused as to why we need namespaced constants. Now that we have class constants, this is a far better way to "namespace" constants. I was also under the impressio

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Greg Beaver
Marcus Boerger wrote: > Hello Guys, > > simply because the crew that actually develops php and tests it a lot > before a release obviously doesn't use PEAR. And given the fact that pear > was dropped from the main releases because it didn't fit into it > functionality and compatibility wise anyw

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Greg Beaver
Jessie Hernandez wrote: > 1) Do not allow constants in namespaces, just stick to functions and > classes. I am confused as to why we need namespaced constants. Now that we have class constants, this is a far better way to "namespace" constants. I was also under the impression that this was far m

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Bob Silva wrote: $x = $y ? foo:bar:baz:stupid; I think "stupid" is the key word here, by forcing the whitespace or (), you are making the language itself stupid by not knowing how to parse itself. I'm not a core developer, but I am pretty sure that this implementation will never be accepted, s

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
z [mailto:[EMAIL PROTECTED] > Sent: Friday, November 25, 2005 8:37 PM > To: internals@lists.php.net; Oliver Grätz > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out > there) > > Hello Oliver, > > Oliver Grätz wrote: > > Marcus Boerger schrie

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Hi Oliver, Oliver Grätz wrote: So if one only allows simple namespaces (no nesting), then one can see that this need to be two namespace constants BUT one has to read the whole line: - one colon means simple constants - three colons: two namespaces constants - two colons: ERROR, undefined If

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Oliver Grätz
Oliver Grätz schrieb: > PS: How about a unicode symbol (egypt god Ra) as namespace operator. > PHP6 will be all about unicode => Yeah, gazillions of new operator > symbols. Or register a "PHP namespace separator symbol" that looks like > the PHP logo. Just kidding... Responding to myself: Why is

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Oliver Grätz
Jessie Hernandez schrieb: >>> that's only one case,go with consts. now try >>>$x = $y ? foo:bar:baz:stupid; >>[... my two cents...] > Thank you!!! This is exactly what happens with my patch now in this > case, one constant named "foo:bar:baz:stupid" is parsed and a syntax > error is produced be

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Oliver Grätz
Gareth Ardron schrieb: > Jessie Hernandez wrote: > >>>Majority asking for namespaces != majority of php users. >> >> >>How do you know? Have you conducted a poll? My guess: 80.0% "What's a namespace?" 17.0% "I don't care." 2.9% "Yes please, weren't they already promised for 5.0 " 0.1% "Oh no.

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Hello Oliver, Oliver Grätz wrote: Marcus Boerger schrieb: Hello Jessie, that's only one case,go with consts. now try $x = $y ? foo:bar:baz:stupid; That's nonsense. If I as a programmer cannot comprehend what it should mean by looking at it then I shouldn't expect that from the language. T

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Oliver Grätz
Marcus Boerger schrieb: > Hello Jessie, > > that's only one case,go with consts. now try > $x = $y ? foo:bar:baz:stupid; That's nonsense. If I as a programmer cannot comprehend what it should mean by looking at it then I shouldn't expect that from the language. To me, this looks like the consta

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Hello Bob, Bob Silva wrote: For what its worth (not much), I'd rather give up namespace constants and use : rather than enforce whitespace which is just BAD from a language perspective. Makes it feel like programming in bash. The concept behind namespaces (in PHP at least) is rooted in OOP, so r

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
5 5:52 PM > To: Jessie Hernandez > Cc: internals@lists.php.net; Christian Schneider > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out > there) > > Jessie Hernandez wrote: > > > >> Majority asking for namespaces != majority of php users. > &g

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
27;s just plain awkward IMO. Bob Silva > -Original Message- > From: Christian Schneider [mailto:[EMAIL PROTECTED] > Sent: Friday, November 25, 2005 4:42 PM > To: Marcus Boerger > Cc: PHP internals > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out &

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Andrei Zmievski
Derick, That's a pretty selfish point of view you have there. So, as long as your code works, screw everyone else? - Andrei On Nov 25, 2005, at 2:57 AM, Derick Rethans wrote: Yes, and that will break code again as I just explained to Sebastian Kettler. And it will break *my* code ;-) --

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Gareth Ardron
Jessie Hernandez wrote: Majority asking for namespaces != majority of php users. How do you know? Have you conducted a poll? Ok,fair enough, I haven't - but neither have you. Until there's any degree of certainty as to how many users this impacts upon I don't think you can say that one w

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Tim Van Wassenhove
On 2005-11-25, Lester Caine <[EMAIL PROTECTED]> wrote: > That is one I am following with interest, and I have a large archive of > unicode data ready to apply to the results :) But *PLEASE* can we have > windows builds to play with from time to time ;) Some of us still do not > have the tools to

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Hello Gareth, Gareth Ardron wrote: Majority asking for namespaces != majority of php users. How do you know? Have you conducted a poll? Regards, Jessie -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Gareth Ardron
Jessie Hernandez wrote: Hi Chris, Christian Schneider wrote: PS: I'd rather have : for namespaces with the whitespace restriction for ? a:x : b:y than the confusing (escaping characters outside of a string?) backslash. - Chris I completely agree, and as I said before, I suspect the maj

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Jessie Hernandez
Hi Chris, Christian Schneider wrote: PS: I'd rather have : for namespaces with the whitespace restriction for ? a:x : b:y than the confusing (escaping characters outside of a string?) backslash. - Chris I completely agree, and as I said before, I suspect the majority who are asking for n

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Christian Schneider
Marcus Boerger wrote: here again namespaces would be perfect. Given a lib that doesn't prefix you'd simply do: namespace LibNameHere { reqire "some_lib_include"; } and be done...wohooo :-) Only if newly introduced PHP core classes use a namespace too. You'll have to use PHP\Date (or the like

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Rasmus Lerdorf
Ian P. Christian wrote: On Friday 25 November 2005 22:15, Rasmus Lerdorf wrote: It is completely inconsistent with the rest of PHP. like how its case sensitive except when it's not and how array functions start array_, except when they don't. if (): is valid, while(): is valid, but you

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Ian P. Christian
On Friday 25 November 2005 22:15, Rasmus Lerdorf wrote: > It is completely inconsistent > with the rest of PHP. like how its case sensitive except when it's not and how array functions start array_, except when they don't. if (): is valid, while(): is valid, but you can't do it with switch,

  1   2   >