rfc:namespacecurlies
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:namespacecurlies [2008/08/31 13:19] – lsmith | rfc:namespacecurlies [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Request for Comments: | + | ====== Request for Comments: |
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2008-08-31 | * Date: 2008-08-31 | ||
Line 44: | Line 44: | ||
- With the new implementation and no blocks, many people expected one namespace per file. | - With the new implementation and no blocks, many people expected one namespace per file. | ||
- Since fewer files means faster execution, many people simply concatenate PHP scripts. Their expectation is to be able to do this for code that uses namespaces as well. | - Since fewer files means faster execution, many people simply concatenate PHP scripts. Their expectation is to be able to do this for code that uses namespaces as well. | ||
- | - PHP will add [[php.net/ | + | - PHP will add [[http://php.net/ |
* Consistency: | * Consistency: | ||
Line 50: | Line 50: | ||
- The alternative is to use ' | - The alternative is to use ' | ||
- Only control structures can be followed by a statement without either ';' | - Only control structures can be followed by a statement without either ';' | ||
+ | |||
+ | * Issues: | ||
+ | - When concatenating a file with a namespace and one without a namespace, the second file gets pulled into the namespace unless the namespace used curly braces. | ||
==== Statements outside namespaces ==== | ==== Statements outside namespaces ==== |
rfc/namespacecurlies.1220188750.txt.gz · Last modified: 2017/09/22 13:28 (external edit)