rfc:namespaceseparator

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:namespaceseparator [2008/10/25 17:12] lsmithrfc:namespaceseparator [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ======+====== Request for Comments: Namespace Separators ======
   * Version: 1.0   * Version: 1.0
   * Date: 2008-10-25   * Date: 2008-10-25
   * Author: Lukas Smith <smith@pooteeweet.org>   * Author: Lukas Smith <smith@pooteeweet.org>
-  * Status: Accepted+  * Status: Implemented in PHP 5.3 (with ''\'' separator)
   * First Published at: http://wiki.php.net/rfc/namespaceseparator   * First Published at: http://wiki.php.net/rfc/namespaceseparator
  
Line 11: Line 11:
  
 The purpose of this RFC is to decide on a namespace separator The purpose of this RFC is to decide on a namespace separator
- +==== Criterions ====
-==== Criterias ====+
  
 (1) type-ability (how easy is it to type the separator) (1) type-ability (how easy is it to type the separator)
Line 25: Line 24:
 ==== Rating ==== ==== Rating ====
  
-+1 means the separator is not affected negatively by the criteria +  - +1 means the separator is not affected negatively by the criteria 
-+-0 means that the separator is only moderately affected by the criteria +  +-0 means that the separator is only moderately affected by the criteria 
--1 means the criteria is severely affected by the criteria+  -1 means the criteria is severely affected by the criteria
  
-^ critieria ^ <code>\</code> ^ <code>**</code> ^ <code>^^</code> ^ <code>%%</code> ^ <code>:> </code> ^ <code>:)</code> ^ <code>:::</code>+^ critieria          ^ <code>\</code> ^ <code>**</code> ^ <code>^^</code> ^ <code>%%</code> ^ <code>:> </code> ^ <code>:)</code> ^ <code>:::</code>
- (1)      |  +-0            +-0            |  -1              -1              +-0              +-0            |  +-0             | +type-ability       |  +-0            +-0            |  -1              -1              +-0              +-0            |  +-0             | 
- (2)      |  +1            |  -1              -1              -1              -1              |  -1              -1              | +typo-vulnerability |  +1            |  -1              -1              -1              -1              |  -1              -1              | 
- (3)       +-0            +-0            |  +-0            |  +-0            |  -1              |  -1              -1              | +parse-ability       +-0            +-0            |  +-0            |  +-0            |  -1              |  -1              -1              | 
-|  (4)      |  +1            |  +1              +1              +1              -1              |  -1              +1              | +IDE compatibility   +1            |  +1              +1              +1              -1              |  -1              +1              | 
- (5)      |  +1            |  -1              -1              -1              -1              |  -1              -1              |+number of chars    |  +1            |  -1              -1              -1              -1              |  -1              -1              |
  
-As such we have decided to go with <code>\</code> as the new namespace separator instead of the current <code>::</code>.+Please note that we did not weigh all criterions evenly. Also we only included choices that we still felt relevant. For example as you can see in the IRC logs at the bottom we had already ruled out "::"
 + 
 +As such we have decided to go with <code>\</code> as the new namespace separator instead of the current <code>::</code>
  
 ===== References ===== ===== References =====
Line 42: Line 43:
   - http://wiki.php.net/rfc/backslashnamespaces   - http://wiki.php.net/rfc/backslashnamespaces
   - IRC {{:rfc:php.ns.txt|discussion}} that illustrates how we got to the decision of going with a new separator and how we came up with the criteria and the ratings.   - IRC {{:rfc:php.ns.txt|discussion}} that illustrates how we got to the decision of going with a new separator and how we came up with the criteria and the ratings.
 +  - previous namespace RFCs:
 +    - [[rfc:namespacecurlies|Namespaces with curly braces]]
 +    - [[rfc::namespaceref|Namespace refinement]]
 +    - [[rfc:namespaceissues|Namespace Issues and Solutions]]
 +
  
 ===== Changelog ===== ===== Changelog =====
rfc/namespaceseparator.1224954725.txt.gz · Last modified: 2017/09/22 13:28 (external edit)