note 86082 added to language.namespaces.definition
| From: | info at thewebsiteguy dot com dot au | Date: | Thu, 02 Oct 2008 09:28:24 +0000 |
| Subject: | note 86082 added to language.namespaces.definition | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144971@lists.php.net to get a copy of this message | ||
PHP Namespaces will be excellent. I write some strict OO n-Tier apps (as much as possible with PHP)
so this will be good for separating layers. The only thing I'll add is that since I have been
a C# programmer, I would have personally preferred name spaces to be encapsulated in {} and use an
import or using statement OR FQ namespace for the class in the case of an ambiguous class.
As an example I might create some classes I use to present the page (suffixed "Module"),
and they relate to a CBO of the same name but with "CBO" as a suffix. Now I can have less
classes to filter through in the IDE!
Now if only we can have partial classes :P
----
Server IP: 117.104.160.194
Probable Submitter: 203.214.47.162
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.definition.php
Edit -- https://master.php.net/note/edit/86082
Del: integrated -- https://master.php.net/note/delete/86082/integrated
Del: useless -- https://master.php.net/note/delete/86082/useless
Del: bad code -- https://master.php.net/note/delete/86082/bad+code
Del: spam -- https://master.php.net/note/delete/86082/spam
Del: non-english -- https://master.php.net/note/delete/86082/non-english
Del: in docs -- https://master.php.net/note/delete/86082/in+docs
Del: other reasons-- https://master.php.net/note/delete/86082
Reject -- https://master.php.net/note/reject/86082
Search -- https://master.php.net/manage/user-notes.php