This is an old revision of the document!
Request for Comments: Namespace Separators
- Version: 1.0
- Date: 2008-10-25
- Author: Lukas Smith email@example.com
- Status: Accepted
- First Published at: http://wiki.php.net/rfc/namespaceseparator
This RFC is the result of a discussion on IRC with Greg, Dmitry, Steph, Derick, Elizabeth, Johannes, Andrei, Scott, Hannes and myself.
The purpose of this RFC is to decide on a namespace separator
(1) type-ability (how easy is it to type the separator)
(2) typo-vulnerability (how easy is it to make a typo and get an unwanted behavior without a error/warning)
(3) parse-ability (how easy is it to read the code and figure out whats going on without getting confused with similar syntax that means another thing)
(4) IDE compatibility
(5) number of chars
- +1 means the separator is not affected negatively 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
|number of chars||+1||-1||-1||-1||-1||-1||-1|
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
as the new namespace separator instead of the current
- IRC 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: