Re: [PHP-DEV] Re: import/use last call

2007-10-25 Thread Stefan Walk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 25 October 2007 10:52:57 Ford, Mike wrote: > On 23 October 2007 19:57, Gregory Beaver wrote: > > The only reason for me is that "use" implies some kind of autoloading, > > as I suggested in one of my other mails. > > H'mm, that's interestin

RE: [PHP-DEV] Re: import/use last call

2007-10-25 Thread Ford, Mike
On 23 October 2007 19:57, Gregory Beaver wrote: > Giedrius D wrote: > > > > Anyway my main question was: is there any reason not to use > keyword "use"? > The only reason for me is that "use" implies some kind of autoloading, > as I suggested in one of my other mails. H'mm, that's interesting. A

Re: [PHP-DEV] Re: import/use last call

2007-10-24 Thread Sebastian Nohn
Marcus Boerger wrote: > Hello Sebastian, > > erm you are not going to use the stuff then? Of course. I was just trying to explain, what the plain words sound like to me. > marcus > > Wednesday, October 24, 2007, 8:11:50 AM, you wrote: > >> Gregory Beaver wrote: >>> Giedrius D wrote: On

Re: [PHP-DEV] Re: import/use last call

2007-10-24 Thread Sebastian Nohn
Marcus Boerger wrote: > Hello Sebastian, > > erm you are not going to use the stuff then? Of course. I was just trying to explain what the plain words sound like. > marcus > > Wednesday, October 24, 2007, 8:11:50 AM, you wrote: > >> Gregory Beaver wrote: >>> Giedrius D wrote: On 10/23/0

Re: [PHP-DEV] Re: import/use last call

2007-10-24 Thread Marcus Boerger
Hello Sebastian, erm you are not going to use the stuff then? marcus Wednesday, October 24, 2007, 8:11:50 AM, you wrote: > Gregory Beaver wrote: >> Giedrius D wrote: >>> On 10/23/07, Gregory Beaver <[EMAIL PROTECTED]> wrote: >>> Anyway my main question was: is there any reason not to use key

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread Sebastian Nohn
Gregory Beaver wrote: > Giedrius D wrote: >> On 10/23/07, Gregory Beaver <[EMAIL PROTECTED]> wrote: >> Anyway my main question was: is there any reason not to use keyword "use"? > The only reason for me is that "use" implies some kind of autoloading, > as I suggested in one of my other mails. Th

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread Giedrius D
On 10/23/07, Gregory Beaver <[EMAIL PROTECTED]> wrote: > > > namespace (Foo::Bar); > > import(new new); > > > parse error - of all reserved words, only "namespace" and "import" are > allowed as class names in my patch Sorry missed that. Somehow I thought this applies only to functions. Anyway allo

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread Gregory Beaver
Giedrius D wrote: > On 10/23/07, Gregory Beaver <[EMAIL PROTECTED]> wrote: > >> The same confusion that is brought about by allowing keywords as >> variable names? >> >> > class Test >> { >> public $class; >> } >> >> $a = new Test; >> $a->class = 1; >> ?> >> >> Is this next example any more

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread Giedrius D
On 10/23/07, Gregory Beaver <[EMAIL PROTECTED]> wrote: > The same confusion that is brought about by allowing keywords as > variable names? > > class Test > { > public $class; > } > > $a = new Test; > $a->class = 1; > ?> > > Is this next example any more confusing? > > class Test > { > fu

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread Gregory Beaver
Giedrius D wrote: > Hi, > > sorry if I missed something but is there any reason to not use keyword "use"? > > IMHO allowing keywords in class, method, function, etc. names brings > more confusion then value. > The same confusion that is brought about by allowing keywords as variable names? clas

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread David Zülke
yeah. let's just go for "use". David Am 23.10.2007 um 11:08 schrieb Giedrius D: Hi, sorry if I missed something but is there any reason to not use keyword "use"? IMHO allowing keywords in class, method, function, etc. names brings more confusion then value. On 10/23/07, Gregory Beave

Re: [PHP-DEV] Re: import/use last call

2007-10-23 Thread Giedrius D
Hi, sorry if I missed something but is there any reason to not use keyword "use"? IMHO allowing keywords in class, method, function, etc. names brings more confusion then value. On 10/23/07, Gregory Beaver <[EMAIL PROTECTED]> wrote: > Stanislav Malyshev wrote: > >> Hold off for a bit - I may hav

[PHP-DEV] Re: import/use last call

2007-10-22 Thread Gregory Beaver
Stanislav Malyshev wrote: >> Hold off for a bit - I may have a simple solution that solves the >> problem for class names, method names and functions, have to code the >> patch tonight first to prove it works. > > OK, please send it as soon as you have it :) Hi, The attached patch is for PHP 5.3,

Re: [PHP-DEV] Re: import/use last call

2007-10-22 Thread Gregory Beaver
Marcus Boerger wrote: > Hello Gregory, > > even if you can solve it easily your patch will not solve the fact that we > won't have a token for that keyword the, or am i missing something? > > marcus Hi Marcus, Just finished the patch (see separate reply), and in my tests, the keyword still wor

[PHP-DEV] Re: import/use last call

2007-10-22 Thread Stanislav Malyshev
Hold off for a bit - I may have a simple solution that solves the problem for class names, method names and functions, have to code the patch tonight first to prove it works. OK, please send it as soon as you have it :) -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://ww

Re: [PHP-DEV] Re: import/use last call

2007-10-22 Thread Marcus Boerger
Hello Gregory, even if you can solve it easily your patch will not solve the fact that we won't have a token for that keyword the, or am i missing something? marcus Tuesday, October 23, 2007, 1:18:52 AM, you wrote: > Stanislav Malyshev wrote: >> Hi all! >> >> Since many packages (wordpress

[PHP-DEV] Re: import/use last call

2007-10-22 Thread Gregory Beaver
Stanislav Malyshev wrote: > Hi all! > > Since many packages (wordpress, propel, horde, phing, etc.) use "import" > as either class or function name, and we couldn't find a good solution > to make it work with import keyword without going into all kinds of > troublesome hacks, so we are thinking ab