rfc:namespace-importing-with-from
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:namespace-importing-with-from [2012/07/24 15:10] – Enhance namespace importing with from syntax reeze | rfc:namespace-importing-with-from [2012/07/25 05:06] – [Introduction] reeze | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This RFC proposes adding a new syntax <code php> | + | This RFC proposes adding a new syntax <code php> |
+ | This syntax is used to import multiple symbols from a common namespace cleanly. | ||
It will make namespace importing easier and reduce deplication. | It will make namespace importing easier and reduce deplication. | ||
Line 18: | Line 19: | ||
<code php> | <code php> | ||
<?php | <?php | ||
- | use Top\A\Long\Namespaced\ClassA; | + | use GlobalNamespace\SubSpace\ThirdSpace\Class1; |
- | use Top\A\Long\Namespaced\ClassB; | + | use GlobalNamespace\SubSpace\ThirdSpace\Class2; |
- | use Top\A\Long\Namespaced\ClassC; | + | use GlobalNamespace\SubSpace\ThirdSpace\ForthSpace\Class3; |
</ | </ | ||
Line 28: | Line 29: | ||
<code php> | <code php> | ||
<?php | <?php | ||
- | from Top\A\Long\Namespaced\NS | + | from GlobalNamespace\SubSpace\ThirdSace |
</ | </ | ||
Line 151: | Line 152: | ||
* 2012-07-24 Initially created by Reeze Xia | * 2012-07-24 Initially created by Reeze Xia | ||
- |
rfc/namespace-importing-with-from.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1