Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-03 Thread teo
Hi Andrei! On Tue, 02 Oct 2001, Andrei Zmievski wrote: > On Tue, 02 Oct 2001, Jason Greene wrote: > > This easy to understand, efficient (no time consuming code to interpret whether > > a class was intended), no backwards compatibility issues, > > no ambiguity, and its not the first 3 symbol oper

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Andrei Zmievski
On Tue, 02 Oct 2001, Jason Greene wrote: > 01 a-tag > 05 a-open-tagpic x(3) value ' 05 pic x(3) value 'href' > 05 a-hrefpic x(50) > 05 a-close-open-tag pic x(1) value '>' > 05 a-display pic x(20) >

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Jason Greene
OTECTED]> Sent: Tuesday, October 02, 2001 10:59 AM Subject: Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity > On Tue, 02 Oct 2001, Jason Greene wrote: > > by then we might as well us

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Andrei Zmievski
On Tue, 02 Oct 2001, Jason Greene wrote: > by then we might as well use English words as operators : ) PHP-COBOL, anyone? -Andrei * We are not a clone. * -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Jason Greene
ot; <[EMAIL PROTECTED]>; "Andi Gutmans" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 02, 2001 10:15 AM Subject: Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend

Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Marc Boeren
> This easy to understand, efficient (no time consuming code to > interpret whether a class was intended), no backwards compatibility > issues, no ambiguity, and its not the first 3 symbol operator to hit php. -1 for me, I don't like any three-symbol-operators, even though === is (barely) acce

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Andrei Zmievski
On Tue, 02 Oct 2001, Jason Greene wrote: > This easy to understand, efficient (no time consuming code to interpret whether > a class was intended), no backwards compatibility issues, > no ambiguity, and its not the first 3 symbol operator to hit php. Yeah, I wonder what we'll be saying when 4- an

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Jason Greene
ROTECTED]> To: "Zeev Suraski" <[EMAIL PROTECTED]>; "John Parker" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 12:16 PM Subject: Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Stig Sæther Bakken
[Zeev Suraski <[EMAIL PROTECTED]>] > At 17:16 01-10-01, Chuck Hagenbuch wrote: > >Quoting Andrei Zmievski <[EMAIL PROTECTED]>: > > > > > I step away from the computer for the weekend, and such an > > > interesting discussion ensues. For the record, I'd vote for either > > > unifying classes and n

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Andi Gutmans
I think ::: is actually pretty good. We should keep this option open. Andi At 04:36 PM 10/1/2001 +0200, Zeev Suraski wrote: >Stupid suggestion, is ::: (three colons) pushing it? > >Zeev > >At 16:29 01-10-01, John Parker wrote: > >> > >'/' is the only operator I can think of that seems to make an

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Martin Jansen
On Mon, 1 Oct 2001 10:08:02 -0500, Andrei Zmievski wrote: >For the record, I'd vote for either >unifying classes and namespaces (I like that approach), or failing that, >using :::. +1 - Martin -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Jon Parise
On Mon, Oct 01, 2001 at 06:19:01PM +0200, Harald Radi wrote: > > > i don't either, but how else will you bind constants to a class / > > > namespace ? > > > > echo Foo::CONSTANT; > > yes, but how do you define them ? > > if it's like this: > > namespace Foo; > define("CONSTANT", 123); On p

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Andrei Zmievski
On Mon, 01 Oct 2001, Harald Radi wrote: > yes, but how do you define them ? > > if it's like this: > > namespace Foo; > define("CONSTANT", 123); > > it won't be a problem either because then a class can't contain such a > definition (yet) and there won't be any ambiguities too. That's how I wa

RE: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Harald Radi
> > i don't either, but how else will you bind constants to a class / > > namespace ? > > echo Foo::CONSTANT; yes, but how do you define them ? if it's like this: namespace Foo; define("CONSTANT", 123); it won't be a problem either because then a class can't contain such a definition (yet) a

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Zeev Suraski
At 17:16 01-10-01, Chuck Hagenbuch wrote: >Quoting Andrei Zmievski <[EMAIL PROTECTED]>: > > > I step away from the computer for the weekend, and such an > > interesting discussion ensues. For the record, I'd vote for either > > unifying classes and namespaces (I like that approach) > >As do I...

Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Andrei Zmievski
On Mon, 01 Oct 2001, Harald Radi wrote: > i don't either, but how else will you bind constants to a class / > namespace ? echo Foo::CONSTANT; -Andrei "Try to spend the next 30 seconds not thinking about a blue-eyed polar bear." -Feodor Dostoevsky -- PHP Development Mailing List

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Andrei Zmievski
On Mon, 01 Oct 2001, Harald Radi wrote: > why ? > > > class Foo { > final $BAR = "blah"; > } > > namespace Foo; > > class Bar { > static function bar() { > echo $Foo::BAR; > } > } > > > if (Foo::Bar::bar() === $Foo::BAR) { > echo "juhuuu"; > } else { > echo "damn"; > } > > > you hav

[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Harald Radi
> I'm sorry, I haven't been following all of this - is 'final' > a keyword that > will be available (and enforced) in ze2? i don't either, but how else will you bind constants to a class / namespace ? -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTEC

[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Chuck Hagenbuch
Quoting Harald Radi <[EMAIL PROTECTED]>: > > And we need namespaces for > > constants, also. > > why ? > > > class Foo { > final $BAR = "blah"; > } I'm sorry, I haven't been following all of this - is 'final' a keyword that will be available (and enforced) in ze2? -chuck

[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Harald Radi
> We don't have static members. but we will in ze2 !? > And we need namespaces for > constants, also. why ? class Foo { final $BAR = "blah"; } namespace Foo; class Bar { static function bar() { echo $Foo::BAR; } } if (Foo::Bar::bar() === $Foo::BAR) { echo "juhuuu"; } else { echo "

Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Chuck Hagenbuch
Quoting Harald Radi <[EMAIL PROTECTED]>: > is there a reason why a namespace should contain anything other than classes ? > we have static functions and static members in classes, no need for them > in namespaces too. We don't have static members. And we need namespaces for constants, also

[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Harald Radi
> It would mean we'd need to have nested classes. or limit namespaces to only contain classes: <...>method(); is there a reason why a namespace should contain anything other than classes ? we have static functions and static members in classes, no need for them in namespaces too. we ca

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Andrei Zmievski
On Mon, 01 Oct 2001, Chuck Hagenbuch wrote: > As do I... Andi, Zeev - are there technical problems with this? We already have > static class methods; having static class variables and static class-specific > constants seems like a logical extension of this to me, and it gives you a > class-is-a

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Chuck Hagenbuch
Quoting Andrei Zmievski <[EMAIL PROTECTED]>: > I step away from the computer for the weekend, and such an > interesting discussion ensues. For the record, I'd vote for either > unifying classes and namespaces (I like that approach) As do I... Andi, Zeev - are there technical problems with

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Andrei Zmievski
On Mon, 01 Oct 2001, Markus Fischer wrote: > On Mon, Oct 01, 2001 at 04:36:44PM +0200, Zeev Suraski wrote : > > Stupid suggestion, is ::: (three colons) pushing it? > > For me better than anything else which came up (smileys, > arithmetical operators, comments). I step away from the computer

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Markus Fischer
On Mon, Oct 01, 2001 at 04:36:44PM +0200, Zeev Suraski wrote : > Stupid suggestion, is ::: (three colons) pushing it? For me better than anything else which came up (smileys, arithmetical operators, comments). +1 - Markus -- PHP Development Mailing List To unsubscribe

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Dean Hall
- Original Message - From: "Zeev Suraski" <[EMAIL PROTECTED]> To: "Dean Hall" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 09.25am Subject: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zen

RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Zeev Suraski
Stupid suggestion, is ::: (three colons) pushing it? Zeev At 16:29 01-10-01, John Parker wrote: > > >'/' is the only operator I can think of that seems to make any sense > > >whatsoever here and is not already used as an operator. > > > > > > I guess you do not divide? :) > > > > Zeev > > >Hmm.

RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread John Parker
> >'/' is the only operator I can think of that seems to make any sense > >whatsoever here and is not already used as an operator. > > > I guess you do not divide? :) > > Zeev > Hmm... I'd personally recommend that the namespace operator is ; as no-one ever uses the semi-colon, do they? Sor

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Martin Jansen
On Mon, 1 Oct 2001 09:57:12 -0400, Jon Parise wrote: >On Mon, Oct 01, 2001 at 10:12:52AM +0200, Andi Gutmans wrote: > >> I am OK with such an ambiguity error. What about the rest of the people? > >I think it will be okay. Anyone using (non-newbie) features like >namespaces and ternary operation

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Dean Hall
Subject: Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity > Just a small follow up. I think it's probably not feasible to detect the > ambiguity. If that's the case, then it seems that we need another namespace-resolution operator. '::&#x

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-01 Thread Jon Parise
On Mon, Oct 01, 2001 at 10:12:52AM +0200, Andi Gutmans wrote: > I am OK with such an ambiguity error. What about the rest of the people? I think it will be okay. Anyone using (non-newbie) features like namespaces and ternary operations should understand the ramifications of stressing the synta

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-09-30 Thread Dean Hall
L PROTECTED]> Sent: Sunday, September 30, 2001 09.44pm Subject: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity > The point is that while those are both valid > > $test?FOO:BAR:BARBARA > > is ambiguous in that it could refer to either of those. I guess my p

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-09-30 Thread George Schlossnagle
> To: "Dean Hall" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Andi Gutmans" > <[EMAIL PROTECTED]> > Sent: Sunday, September 30, 2001 08.02pm > Subject: Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity > >

Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-09-30 Thread Dean Hall
- Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Dean Hall" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Andi Gutmans" <[EMAIL PROTECTED]> Sent: Sunday, September 30, 2001 08.02pm Sub

Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-09-30 Thread Rasmus Lerdorf
> Anyway, if I'm not seeing the real ambiguity here, let me know. The ternary in question is expr ? val1 : val2 If val1 or val2 contains a : you have an ambiguity -Rasmus -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-09-30 Thread Dean Hall
- Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, September 30, 2001 12.31pm Subject: [Zend Engine 2] namespaces ambiguity > Would this mean that the person meant $test?(FOO):(BAR:BARBARA) or > $test?(FOO:BAR):BARBARA