Re: Question on namespaces

From: Date: Mon, 30 Jul 2007 19:21:42 +0000
Subject: Re: Question on namespaces
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-31328@lists.php.net to get a copy of this message
Hello Stanislav, I use a broad variety of languages. And the older ones like C++ and Java are pretty distinctive. Namespaces have a dedicated range or space declared by curly braces and can contain other namespaces. Whileas Java packages are file wide. And actually that is much easier and quite what we want. We want this connection from a file to a namespace erm making a file giving a name prefix automatically. We do not want the confusion namespaces in the C++ sense can bring. So yes I like the implementation Dmitry did a lot - it just seems wrong to me calling them namespaces purely because we called them that prior to 5.0 release and becasue we always called them so in discussions. But the implementation is also quite different from anything we discussed outside of the paris meeting. That's all from my side. marcus Wednesday, July 25, 2007, 2:04:07 AM, you wrote: >> My only concern is that you took a package model and named it namespaces. >> Can we change the keyword from 'namespace' to 'package'? > Actually, it's neither, but it's more like namespaces than packages > IMHO. Though both terms are used in different languages in the roughly > same sense. Best regards, Marcus

« previous php.internals (#31328) next »