rfc:namespacecurlies
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:namespacecurlies [2008/08/31 13:16] – helly | rfc:namespacecurlies [2008/08/31 13:19] – lsmith | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | During alpha phase of PHP 5.0 ther was a namespace implementation that was very close to the one of C++. Because an inconsistency between namespace separator '::' | + | During alpha phase of PHP 5.0 there was a namespace implementation that was very close to the one of C++. Because an inconsistency between namespace separator '::' |
The following issues have been identified: | The following issues have been identified: | ||
Line 34: | Line 34: | ||
- Nearly all C++ editors are set to not indent on namespaces. | - Nearly all C++ editors are set to not indent on namespaces. | ||
- | | + | |
- Java and C++ are the closest, wide spread languages that support namespaces. | - Java and C++ are the closest, wide spread languages that support namespaces. | ||
- | - C++ uses the keywords ' | + | - C++ uses the keywords ' |
- Java uses the keywords ' | - Java uses the keywords ' | ||
Line 58: | Line 58: | ||
--foo.php | --foo.php | ||
- | | + | |
function test{} { | function test{} { | ||
echo __NAMESPACE__ . " | echo __NAMESPACE__ . " |
rfc/namespacecurlies.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1