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
Last revisionBoth sides next revision
rfc:namespacecurlies [2008/08/31 13:19] lsmithrfc:namespacecurlies [2008/08/31 15:37] – fix link bjori
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ======+====== Request for Comments: Namespaces with curly braces ======
   * 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/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.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1