note 105962 added to language.namespaces
| From: | tech at mutk dot net | Date: | Wed, 28 Sep 2011 09:03:53 +0000 |
| Subject: | note 105962 added to language.namespaces | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183501@lists.php.net to get a copy of this message | ||
I against the namespace style.
namespace my\name\space;
when
namespace my;
use name\space;
it is
use \my\name\space;
I think is the bad way to implement of namespace.
define name space by:
namespace my;
namespace my\space;
namespace my\name\space;
and the only way to use the name space as:
use my;
use my\space;
use my\name\space;
in namespace my; use space; is use namespace space; not namespace \my\space;
keep it simple is the best way.
----
Server IP: 69.147.83.197
Probable Submitter: 221.7.246.90
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.php
Edit -- https://master.php.net/note/edit/105962
Del: integrated -- https://master.php.net/note/delete/105962/integrated
Del: useless -- https://master.php.net/note/delete/105962/useless
Del: bad code -- https://master.php.net/note/delete/105962/bad+code
Del: spam -- https://master.php.net/note/delete/105962/spam
Del: non-english -- https://master.php.net/note/delete/105962/non-english
Del: in docs -- https://master.php.net/note/delete/105962/in+docs
Del: other reasons-- https://master.php.net/note/delete/105962
Reject -- https://master.php.net/note/reject/105962
Search -- https://master.php.net/manage/user-notes.php