rfc:namespacecurlies

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:namespacecurlies [2008/08/31 13:26] – Add title feliperfc:namespacecurlies [2017/09/22 13:28] (current) – external edit 127.0.0.1
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/phar|Phar archive]] support and thus does not really require source concatenation any longer.+     - PHP will add [[http://php.net/phar|Phar archive]] support and thus does not really require source concatenation any longer.
  
    * Consistency:    * Consistency:
Line 50: Line 50:
      - The alternative is to use 'namespace name:' rather than 'namespace name; /*...*/ endnamespace;' is done for all other alternate forms.      - The alternative is to use 'namespace name:' rather than 'namespace name; /*...*/ endnamespace;' is done for all other alternate forms.
      - Only control structures can be followed by a statement without either ';' or ':', however they only allow a single statement.      - Only control structures can be followed by a statement without either ';' or ':', however they only allow a single statement.
 +
 +   * 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.1220189193.txt.gz · Last modified: 2017/09/22 13:28 (external edit)