note 107684 added to language.namespaces.basics
| From: | tom at tomwardrop dot com | Date: | Sun, 26 Feb 2012 10:06:37 +0000 |
| Subject: | note 107684 added to language.namespaces.basics | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186367@lists.php.net to get a copy of this message | ||
It seems the file system analogy only goes so far. One thing that's missing that would be very
useful is relative navigation up the namespace chain, e.g.
<?php
namespace MyProject {
class Person {}
}
namespace MyProject\People {
class Adult extends ..\Person {}
}
?>
That would be really nice, especially if you had really deep namespaces. It would save you having to
type out the full namespace just to reference a resource one level up.
----
Server IP: 69.147.83.197
Probable Submitter: 58.96.46.86
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.basics.php
Edit -- https://master.php.net/note/edit/107684
Del: integrated -- https://master.php.net/note/delete/107684/integrated
Del: useless -- https://master.php.net/note/delete/107684/useless
Del: bad code -- https://master.php.net/note/delete/107684/bad+code
Del: spam -- https://master.php.net/note/delete/107684/spam
Del: non-english -- https://master.php.net/note/delete/107684/non-english
Del: in docs -- https://master.php.net/note/delete/107684/in+docs
Del: other reasons-- https://master.php.net/note/delete/107684
Reject -- https://master.php.net/note/reject/107684
Search -- https://master.php.net/manage/user-notes.php