Re: [PHP-DEV] Renaming namespaces to packages

2007-08-22 Thread l0t3k
"Jani Taskinen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "package" is also shorter than "namespace". Just commit the stuff, it's > pointless to argue about it. Majority rules. and it makes for great alliteration can you say "Peter picked a Pack of Pecl PHP Packages" ;-) --

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Johannes Schlüter
> To: Marcus Boerger <[EMAIL PROTECTED]> > Cc: PHP Internals List > Sent: Monday, August 20, 2007 12:09:34 PM > Subject: Re: [PHP-DEV] Renaming namespaces to packages > > > interesting, we are still in prototype formhmmm since when do we > > commit proto ty

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Tony Bibbs
nday, August 20, 2007 12:09:34 PM Subject: Re: [PHP-DEV] Renaming namespaces to packages > interesting, we are still in prototype formhmmm since when do we > commit proto types? I thought we are supposed to show patches until they > work as expected. So remembering the other new

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Stanislav Malyshev
interesting, we are still in prototype formhmmm since when do we commit proto types? I thought we are supposed to show patches until they work as expected. So remembering the other new mails you guys wrote recentlywe might drop all of this again, we might rename all of it, we I don't t

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Olivier Hill
On 8/20/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Mon, 2007-08-20 at 12:13 +0200, Marcus Boerger wrote: > > Hello Dmitry, > > > > LOL, and in the future we have to rename PHP as it is no longer for > > homepages? > > I thought it was renamed already to PHP Hypertext Processor :) Yes,

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Robert Cummings
On Mon, 2007-08-20 at 12:13 +0200, Marcus Boerger wrote: > Hello Dmitry, > > LOL, and in the future we have to rename PHP as it is no longer for > homepages? I thought it was renamed already to PHP Hypertext Processor :) Cheers, Rob. -- ..

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Marcus Boerger
Hello Stanislav, interesting, we are still in prototype formhmmm since when do we commit proto types? I thought we are supposed to show patches until they work as expected. So remembering the other new mails you guys wrote recentlywe might drop all of this again, we might rename all of i

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Marcus Boerger
nnes Schlьter [mailto:[EMAIL PROTECTED] >> Sent: Thursday, August 16, 2007 10:14 PM >> To: Dmitry Stogov >> Cc: 'PHP Internals List' >> Subject: RE: [PHP-DEV] Renaming namespaces to packages >> >> >> Hi, >> >> On Thu, 2007-08-16

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-18 Thread Stanislav Malyshev
We might even be allowed to import a whole namespace to global and I doubt it's a good idea. Aside from obvious concern of global space pollution, there are performance concerns - global imports are very hard to resolve at compile-time and they are quite hostile to bytecode-caches (since they

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-18 Thread emo
Stanislav Malyshev wrote: And oh the original implementation did not work either. And hey it had nestng and wasnt't bound to files. For what it worth, I think there's a link between nesting and not working :) Oh and speaking of your wiki again. Your wiki does not list any of the very hard l

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-18 Thread Richard Lynch
On Wed, August 15, 2007 7:04 pm, Stanislav Malyshev wrote: While I still think it smells more like "package" than "namespace" I'm changing my vote to just call it "namespace" and be done with it. If we really feel the need to add braces support later, we can. Who knows, maybe even the file-based

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread scott lewis
On 17 Aug 2007, at 1146, Stanislav Malyshev wrote: Again, you are trying to use a keyword based on what developer's most know. You want to release a sort of namespace implementation and frustrate users, that expect a true namespace implementation. Please stop doing this. PHP namespace implemen

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Stanislav Malyshev
Again, you are trying to use a keyword based on what developer's most know. You want to release a sort of namespace implementation and frustrate users, that expect a true namespace implementation. Please stop doing this. PHP namespace implementation is as "true" as it gets, even in current form

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Guilherme Blanco
Again, you are trying to use a keyword based on what developer's most know. You want to release a sort of namespace implementation and frustrate users, that expect a true namespace implementation. I'd like that language MyPersonalFckinLang implemented it. Everything in this discussion is motivated

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Ilia Alshanetsky
David, Most people don't know wtf you are referring to by "package", but nearly everyone knows the concept of namespaces. Packages is name for an implementation of namespaces, calling it packages just because language XYZ that I like, does not sound like the best of ideas. On 17-Aug-07,

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-17 Thread Giedrius D
> prefix Foo; > alias Foo:Bar as Quux; > If namespaces have to be renamed, then IMHO this proposal is the best so far. "alias" would also remove confusion from statement like ``import Foo`` because ``alias Foo`` is clearly no-op per se. At least to me ;-) Regards, Giedrius -- PHP Internals - PH

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread David Coallier
On 8/17/07, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > While PHP implementation of namespaces is may not be 100% of what > people consider to be namespaces it is close enough and I think the > name "namespaces" is most appropriate and clear cut. We don't call > PHP objects "Zend Objects" or some

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Ilia Alshanetsky
While PHP implementation of namespaces is may not be 100% of what people consider to be namespaces it is close enough and I think the name "namespaces" is most appropriate and clear cut. We don't call PHP objects "Zend Objects" or some other strange name, I don't see why namespaces should b

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Richard Quadling
Oh dear. I thought the general feeling was to stick with namespaces? On 17/08/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Hi, > > I've updated the patch to be compatible with Dmitry's latest changes: > http://schlueters.de/~johannes/php/zend_namespace_to_package_20070817.diff > > johannes >

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread David Coallier
Great stuff man! :) Thanks On 8/17/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Hi, > > I've updated the patch to be compatible with Dmitry's latest changes: > http://schlueters.de/~johannes/php/zend_namespace_to_package_20070817.diff > > johannes > > On Fri, 2007-08-10 at 11:26 +0200, Johan

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Johannes Schlüter
Hi, I've updated the patch to be compatible with Dmitry's latest changes: http://schlueters.de/~johannes/php/zend_namespace_to_package_20070817.diff johannes On Fri, 2007-08-10 at 11:26 +0200, Johannes Schlüter wrote: > Hi, > > I think we reached the consensus to rename namespaces to packages a

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-17 Thread Jingcheng Zhang
Hi, Has anyone thought of the keyword "phpspace"? 2007/8/17, M. Sokolewicz <[EMAIL PROTECTED]>: > > I've been reading this lengthy discussion and here's a sumup of what I > found: > - PHP's implementation is only a part of what most people expect to find > when they hear "php has namespace suppo

Re: RE: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Tyler Lawson
Why not use both names? For all of those distributing frameworks and such, use "package". And for everybody else, who just wants to shorten their class names, use "namespace". It's probably easier said than done, but why not just alias one to the other? Tyler -- PHP Internals - PHP Runtim

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-17 Thread M. Sokolewicz
I've been reading this lengthy discussion and here's a sumup of what I found: - PHP's implementation is only a part of what most people expect to find when they hear "php has namespace support" - PHP's implementation looks a bit like JAVA's package support, and a bit like many other (differently

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Dmitry Stogov
back :) Thanks. Dmitry. > -Original Message- > From: Johannes Schlьter [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 16, 2007 10:14 PM > To: Dmitry Stogov > Cc: 'PHP Internals List' > Subject: RE: [PHP-DEV] Renaming namespaces to packages > > >

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Robert Cummings
On Thu, 2007-08-16 at 17:51 -0600, scott lewis wrote: > On 16 Aug, 2007, at 1737, Stanislav Malyshev wrote: > > >> PHP users: "Wait.. WTF? These don't act like namespaces - where > >> are the braces?" > > > > That's like saying "BMW Z4 is not a car - it has only two seats!" > > That doesn't cha

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread scott lewis
On 16 Aug, 2007, at 1737, Stanislav Malyshev wrote: PHP users: "Wait.. WTF? These don't act like namespaces - where are the braces?" That's like saying "BMW Z4 is not a car - it has only two seats!" That doesn't change the fact that that was the very reaction of this list. PHP users:

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread scott lewis
On 16 Aug, 2007, at 1148, Stanislav Malyshev wrote: You can use zendspace. (Gregory) If you want me to get Johannes patch and convert it to zendspace, just tell me. So it goes like this: PHP Group: "Good news everyone! PHP now has zendspaces!". PHP users: "WTF???" PHP Group: "It's like a nam

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
PHP users: "Wait.. WTF? These don't act like namespaces - where are the braces?" That's like saying "BMW Z4 is not a car - it has only two seats!" PHP users: "These act more like... Java packages. Why are they called namespaces?" Java packages are namespace implementation, btw. -- Stanislav

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
And oh the original implementation did not work either. And hey it had nestng and wasnt't bound to files. For what it worth, I think there's a link between nesting and not working :) Oh and speaking of your wiki again. Your wiki does not list any of the very hard limitations we have in the cur

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Marcus Boerger
Hello Stanislav, Thursday, August 16, 2007, 7:13:45 PM, you wrote: >> Read the purpose of both, which restrictions/limitations both have, >> how are they defined, how are they used, etc and you'll see if the >> current implementation is more like 'namespace' or 'package'. It's not >> related to p

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
So going with existing expectation is good or bad? Having our implementation match some existing one because the solution is right for both - good. Imitating existing implementation just because it exists in some other language - bad (not always, but in this case). -- Stanislav Malyshev, Zend

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Marcus Boerger
Hello Stanislav, what the hell are you talking about? We had a namespace implementation and now we have a new one. One that for a lot of people here smells like packages. There are no three or more different ones. None of them was ever accepted or comitted. Actually I doubt that any of them was e

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Marcus Boerger
Hello Ralph, thanks for the very good explanation, but don't expect to get anything back it is the same arguemnt I tried already - Expectations based on experience from existing languages. Rather then reachign for the straw of non existing features in other languages. best regards marcus T

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Antony Dovgal
On 16.08.2007 23:40, Tijnema wrote: On 8/16/07, Derick Rethans <[EMAIL PROTECTED]> wrote: No it's not, we only support 2.5.4. Confusing answers, but anyway, configure doesn't fail on flex, neither does it generate a warning or such. It says (from the log) Checking for flex.. and Checking for f

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Derick Rethans
On Thu, 16 Aug 2007, Tijnema wrote: > On 8/16/07, Derick Rethans <[EMAIL PROTECTED]> wrote: > > No it's not, we only support 2.5.4. [snip] > and btw derick, since when is 2.5.4 newer than 2.5.33? 2.5.4 has been > released in 1997, and 2.5.33 in 2006, which is still the latest stable > version at

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
On Thu, 2007-08-16 at 21:27 +0200, Johannes Schlüter wrote: > > I have flex 2.5.33 installed btw, that's fine right? > > Yes, check the output of configure for details why it wasn't found. Bah, I hate numbers. We need flex 2.5.4, not 2.5.33. 2.5.33 won't work with the engine's skeleton file. joh

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Derick Rethans
On Thu, 16 Aug 2007, Tijnema wrote: > Well, why does PHP compiles fine without the patch?, and why is this > file in the snapshot package when it is generated from flex? > > > I have flex 2.5.33 installed btw, that's fine right? No it's not, we only support 2.5.4. Derick -- Derick Rethans ht

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Tijnema
On 8/16/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Hi again, > > On Thu, 2007-08-16 at 20:50 +0200, Tijnema wrote: > > > Well, why does PHP compiles fine without the patch?, and why is this > > file in the snapshot package when it is generated from flex? > > Since snaps are for users, CVS v

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
Hi again, On Thu, 2007-08-16 at 20:50 +0200, Tijnema wrote: > Well, why does PHP compiles fine without the patch?, and why is this > file in the snapshot package when it is generated from flex? Since snaps are for users, CVS versions (and patches) are for developers and we expect developers to h

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Tijnema
On 8/16/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Hi Tijnema, > > On Thu, 2007-08-16 at 20:27 +0200, Tijnema wrote: > > On 8/10/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I think we reached the consensus to rename namespaces to packages as our > > > implementati

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
Hi Tijnema, On Thu, 2007-08-16 at 20:27 +0200, Tijnema wrote: > On 8/10/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I think we reached the consensus to rename namespaces to packages as our > > implementation is more package-like. Therefore I wrote the corresponding > > patch w

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Tijnema
On 8/10/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Hi, > > I think we reached the consensus to rename namespaces to packages as our > implementation is more package-like. Therefore I wrote the corresponding > patch which tries to get rid of all "namespaces" and "ns" (well, not all > "ns" on

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Ralph Schindler
Stas, Namespace implementations for languages have been around for decades in one form or another. People use the languages they are used to developing in to demonstrate their points on how it should work, and what it should be called when it works a certain way. Its 2007. Given that we hav

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
include mysqlnd, unicode and whatever else we have in HEAD right now) johannes [1] http://news.php.net/php.internals/31328 > Thanks. Dmitry. > > > -Original Message- > > From: Derick Rethans [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 15, 2007 10:25

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
You can use zendspace. (Gregory) If you want me to get Johannes patch and convert it to zendspace, just tell me. So it goes like this: PHP Group: "Good news everyone! PHP now has zendspaces!". PHP users: "WTF???" Internally in the Zend framework (in a class definition, for exmaple), it can use

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Guilherme Blanco
On 8/16/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > Read the purpose of both, which restrictions/limitations both have, > > how are they defined, how are they used, etc and you'll see if the > > current implementation is more like 'namespace' or 'package'. It's not > > related to package

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
Read the purpose of both, which restrictions/limitations both have, how are they defined, how are they used, etc and you'll see if the current implementation is more like 'namespace' or 'package'. It's not related to package Java, namespace C, def, zendspace of whatever. That's what I am trying

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Gregory Beaver
Hi, All of the debate over whether this is a true namespace implementation is in my opinion completely bogus (translate: I think "namespace" is a fine choice for the reserved word, and "package" is a dangerously misleading choice), but since there is so much noisy dissent, I have an alternative pr

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Guilherme Blanco
Here we come again =\ > > So for you namespaces == C namespaces. Great, since PHP does not have > > C packages, problem solved, it's not namespaces. > > I gave you description of namespaces which clearly states what namespace > is, and has nothing to do with C or any specific programming lang

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Marc Gear
On 8/16/07, Sebastian Bergmann <[EMAIL PROTECTED]> wrote: > http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html Thinking on 'packages' further I think that part of my objection to use of the term for PHP is that Java provides built-in packages (java.io etc etc) while PHP does

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Tijnema
On 8/16/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > So for you namespaces == C namespaces. Great, since PHP does not have > > C namespaces, problem solved, it's not namespaces. > > I gave you description of namespaces which clearly states what namespace > is, and has nothing to do with C

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
You asked for a specification of packages in a programming language. I just pointed you to the specification of packages in Java. Yes, I know Java implements packages this way. And Perl implements them other way. And C yet another way. And PHP has at least three packaging implementations whic

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
So for you namespaces == C namespaces. Great, since PHP does not have C packages, problem solved, it's not namespaces. I gave you description of namespaces which clearly states what namespace is, and has nothing to do with C or any specific programming language at all. When I asked what is the

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Tijnema
On 8/16/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > Java just happens to be the programming language that I associate the > > most with the programming language feature in question. > > So for you packages == Java packages. Great, since PHP does not have > Java packages, problem solved,

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Sebastian Bergmann
Stanislav Malyshev schrieb: > So for you packages == Java packages. Great, since PHP does not have > Java packages, problem solved, it's not packages. You asked for a specification of packages in a programming language. I just pointed you to the specification of packages in Java. That's all :)

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Stanislav Malyshev
Java just happens to be the programming language that I associate the most with the programming language feature in question. So for you packages == Java packages. Great, since PHP does not have Java packages, problem solved, it's not packages. -- Stanislav Malyshev, Zend Software Architect

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Sebastian Bergmann
Stanislav Malyshev schrieb: > I wonder why everybody here talks about one and only one language - > Java. Java just happens to be the programming language that I associate the most with the programming language feature in question. -- Sebastian Bergmann http://sebastia

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
Could you give definition of what is a package, so we could see if it resembles more of a package or less? http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html I wonder why everybody here talks about one and only one language - Java... It's not like programming languages

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Sebastian Bergmann
Stanislav Malyshev schrieb: > Could you give definition of what is a package, so we could see if it > resembles more of a package or less? http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-15 Thread Dmitry Stogov
OTECTED] > Sent: Wednesday, August 15, 2007 10:25 PM > To: Dmitry Stogov > Cc: 'PHP Internals List' > Subject: RE: [PHP-DEV] Renaming namespaces to packages > > > On Fri, 10 Aug 2007, Dmitry Stogov wrote: > > > I have no serious objections about ren

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Larry Garfield
On Wednesday 15 August 2007, Stanislav Malyshev wrote: > > If PHP team release in the news: > > > > PHP has namespace support! > > OR > > PHP has package support! > > > > Everyone will understand what does that mean. Those that do not > > I wouldn't. And that's not because I'm so dense, but because

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
This leaves the "Namespace" name available for future development if/as Which means we officially declare PHP *doesn't* have namespaces (since we reserve the right to develop it in the future, it's obvious we didn't do it yet). Why it would be a good thing? needed (such as if the language w

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Mark Wallaert
> That's not true. Even if you discount people that don't care or dare > enough to write on the list, there were still people who wrote in > support of keeping "namespace" and they weren't me :) Okay, I'll dare. I vote for using the name "Package" for the current implementation. This leaves the

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
A software package is that beautiful box you go to the supermarket and buy the product. A package in programming language is exactly what I wrote to you. If by programming language you mean Java, since some people consider these to be synonymous ;) No. You mentioned not only once that namesp

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Tijnema
On 8/15/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: > On 8/15/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > > Take a look at this URL and tell me which one PHP does look like: > > > http://kaistizen.net/Project/CSharpJava/csharp_java.htm#NamespaceVsPackage > > > > Neither, actually. But

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Guilherme Blanco
On 8/15/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > Take a look at this URL and tell me which one PHP does look like: > > http://kaistizen.net/Project/CSharpJava/csharp_java.htm#NamespaceVsPackage > > Neither, actually. But it's not about "should we imitate C# or Java". > It's about what'

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
Take a look at this URL and tell me which one PHP does look like: http://kaistizen.net/Project/CSharpJava/csharp_java.htm#NamespaceVsPackage Neither, actually. But it's not about "should we imitate C# or Java". It's about what's best for PHP. My opinion is that for PHP would be best to have na

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Giedrius D
On 8/15/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > current implementation doesn't have braces; this (consequently) adds a > > Ouch, not braces again. What is it with braces that you need them so > badly? Many languages aren't using the things ever, isn't it a proof > that there's life o

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Guilherme Blanco
On 8/15/07, Marc Gear <[EMAIL PROTECTED]> wrote: > On 8/15/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: > > > ZF is using Very_Very_Long_And_Very_Irritating_Class_Names because > > > there's no choice to do otherwise. > > If you are creating this patch only to simplify this, I recommend you > >

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Marc Gear
On 8/15/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: > > ZF is using Very_Very_Long_And_Very_Irritating_Class_Names because > > there's no choice to do otherwise. > If you are creating this patch only to simplify this, I recommend you > to keep it as PHP is currently and just add namespace/packa

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Ralph Schindler
Stanislav Malyshev wrote: Wikipedia also define the term MVC. But alas, that is a conceptual definition, not blueprints for implementation. Who cares about the implementation? It's still MVC. So let's implement MVC and call it "distributed enterprise messaging" and then let's spend next 2 ye

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Guilherme Blanco
On 8/15/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > PHP has namespaced package support. > > Yep, that's what I was talking about. "We have namespaces but we call it > packages because Java does". Eek. > Take a look at this URL and tell me which one PHP does look like: http://kaistizen.ne

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-15 Thread Stanislav Malyshev
I have no serious objections about renaming. I am asking to wait a bit. If you think "package" is fine, why wait with renaming it? Because there are others that don't think name "package" is better? -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)25

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
PHP has namespaced package support. Yep, that's what I was talking about. "We have namespaces but we call it packages because Java does". Eek. Wikipedia also define the term MVC. But alas, that is a conceptual definition, not blueprints for implementation. Who cares about the implementati

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Ralph Schindler
Stanislav Malyshev wrote: If PHP team release in the news: PHP has namespace support! OR PHP has package support! PHP has namespaced package support. Which, is what the implementation is. Or worked with different ones enough to understand that "packages" is used for a zillion of different t

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-15 Thread Derick Rethans
On Fri, 10 Aug 2007, Dmitry Stogov wrote: > I have no serious objections about renaming. I am asking to wait a bit. If you think "package" is fine, why wait with renaming it? regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP R

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
If PHP team release in the news: PHP has namespace support! OR PHP has package support! Everyone will understand what does that mean. Those that do not I wouldn't. And that's not because I'm so dense, but because "package" could mean anything, from next generation autoloader (I myself propose

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Guilherme Blanco
Stan, Sorry to disappoint you, but your idea is wrong. If PHP team release in the news: PHP has namespace support! OR PHP has package support! Everyone will understand what does that mean. Those that do not understand are the ones that had never worked with it and can work in the future (and wi

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Stanislav Malyshev
It's not about the popularity of a word, but the meaning of it. If it resembles more of a package, let's call it package (as it does Could you give definition of what is a package, so we could see if it resembles more of a package or less? currently, namespace should be nested.. but that's m

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Marc Gear
On 8/15/07, Olivier Hill <[EMAIL PROTECTED]> wrote: > It's not about the popularity of a word, but the meaning of it. A package means a collection of related classes and thats not whats happening- it is a scoping level for a particular file. A namespace is a scope which groups related identifiers

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Olivier Hill
Marc, This is not the right reason for naming it namespace. Example: Say I am writing a new language. I want to introduce something similar to functions. But since OO is popular and sounds nice.. why not call it method on an object? People are asking for objects.. I'll just give them objects.

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-15 Thread Marc Gear
FWIW I am for "namespaces" because: - the functionality mentioned most often as missing in PHP is 'namespaces'. People want 'namespaces' (see http://en.wikipedia.org/wiki/PHP#Criticism) - What they really want is no more clashing classes/functions/variables when they integrate third party apps (wh

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread Larry Garfield
On Tuesday 14 August 2007, Guilherme Blanco wrote: > Subject: File Struture > Comments: > Namespace do not restrict directories (AFAIK) > Packages restrict directories (each package have a directory with its > name, like Zend/Cache/File.php) > > Question: What is the behavior of PHP in this situat

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread David Coallier
On 8/14/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > OO. And anyway, are we struggling to find excuses here? Can we in no way > > ever at least try to be consistent in anything we do? That JS argument is an > > How "consistent" had acquired a meaning of "doing it my way"? There's > nothing

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread David Coallier
hile JS uses prototype based > > OO. And anyway, are we struggling to find excuses here? Can we in no way > > ever at least try to be consistent in anything we do? That JS argument is an > > extremly bad far fetched argument. > > > > marcus > > > > Saturday,

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread Stanislav Malyshev
OO. And anyway, are we struggling to find excuses here? Can we in no way ever at least try to be consistent in anything we do? That JS argument is an How "consistent" had acquired a meaning of "doing it my way"? There's nothing inconsistent in the name "namespace" and it is very consistent wit

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread Guilherme Blanco
t 11, 2007, 9:57:37 PM, you wrote: > > > > Original Message > > Subject: Re: [PHP-DEV] Renaming namespaces to packages > > Date: Fri, 10 Aug 2007 10:03:25 -0700 > > From: Stanislav Malyshev <[EMAIL PROTECTED]> > > Organization: Zend Techno

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread Marcus Boerger
Message > Subject: Re: [PHP-DEV] Renaming namespaces to packages > Date: Fri, 10 Aug 2007 10:03:25 -0700 > From: Stanislav Malyshev <[EMAIL PROTECTED]> > Organization: Zend Technologies > To: Keryx Web <[EMAIL PROTECTED]> > References: <[EMAIL PROTECTED]>

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-14 Thread Marcus Boerger
Hello Larry, even if their other main language is JS - they still do not have namespaces or packages and even if both languages have something. I'd rather confuse people that only know two languages which are very different anyways than confusing the probably much bigger group of people that know

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Alan Knowles
The two pages for reference. http://developer.mozilla.org/es4/spec/chapter_11_packages.html http://developer.mozilla.org/es4/spec/chapter_12_namespaces.html The spec's quite nice, although a bit of a nightmare to implement in parts ;) - From what I've seen, and I've not been keeping up with a

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Keryx Web
Tijnema skrev: Since JavaScript (or ECMAScript) doesn't have namespaces, people that hear the name namespace for php will either don't know what it is, or think that it's the same as the C implementation. ECMAScript 3 aka JavaScript 1.x does not have NS. ECMAScript 4 aka JavaScript 2 will hav

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Giedrius D
It isn't C++-like namespaces and it isn't Java-like packages. So it doesn't really matters what name will be used. It will confuse newcomers from any language anyway. I came to PHP from C++ and I find my self confused from time to time even though I code in PHP for a few years now. There are alrea

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Richard Quadling
On 13/08/07, Tijnema <[EMAIL PROTECTED]> wrote: > Since JavaScript (or ECMAScript) doesn't have namespaces, people that > hear the name namespace for php will either don't know what it is, or > think that it's the same as the C implementation. > > Tijnema I don't know what namespaces look like in

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Tijnema
On 8/13/07, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Monday 13 August 2007, Tijnema wrote: > > On 8/13/07, Keryx Web <[EMAIL PROTECTED]> wrote: > > > Stanislav Malyshev skrev: > > > > And they, btw, are not ashamed of calling it namespaces just because > > > > it's not c++ ;) > > > > > > Exac

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Larry Garfield
On Monday 13 August 2007, Tijnema wrote: > On 8/13/07, Keryx Web <[EMAIL PROTECTED]> wrote: > > Stanislav Malyshev skrev: > > > And they, btw, are not ashamed of calling it namespaces just because > > > it's not c++ ;) > > > > Exactly. That was my main point. And, as I said,ECMAScript 4 will most >

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Tijnema
On 8/13/07, Keryx Web <[EMAIL PROTECTED]> wrote: > Stanislav Malyshev skrev: > > > And they, btw, are not ashamed of calling it namespaces just because > > it's not c++ ;) > > Exactly. That was my main point. And, as I said,ECMAScript 4 will most > probably be the main other language for most ordin

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-13 Thread Keryx Web
Stanislav Malyshev skrev: And they, btw, are not ashamed of calling it namespaces just because it's not c++ ;) Exactly. That was my main point. And, as I said,ECMAScript 4 will most probably be the main other language for most ordinary PHP developers, not Java and certainly not C. Especially

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-13 Thread Richard Quadling
On 10/08/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > My perception is that when people talk about "namespaces" they usually > mean logical separation of things in, well, naming space, and when they > talk "packages" they usually mean files on disk and putting things into > files and finding

[Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-11 Thread Stanislav Malyshev
Original Message Subject: Re: [PHP-DEV] Renaming namespaces to packages Date: Fri, 10 Aug 2007 10:03:25 -0700 From: Stanislav Malyshev <[EMAIL PROTECTED]> Organization: Zend Technologies To: Keryx Web <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]>

  1   2   >