rfc:consistent-names
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:consistent-names [2014/01/22 22:05] – yohgaki | rfc:consistent-names [2021/03/27 14:32] (current) – Move to inactive ilutov | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2014-01-23 | * Date: 2014-01-23 | ||
* Author: Yasuo Ohgaki, yohgaki@ohgaki.net | * Author: Yasuo Ohgaki, yohgaki@ohgaki.net | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | PHP has been developed about 20 years. Many legacy functions/ | + | PHP has been developed about 20 years. Many legacy functions/ |
Inconsistent names are not appealing for new users. Having consistent names would help to assure PHP's attractiveness to learn. Older names should be usable for compatibility. | Inconsistent names are not appealing for new users. Having consistent names would help to assure PHP's attractiveness to learn. Older names should be usable for compatibility. | ||
Line 18: | Line 18: | ||
Add CODING_STANDARDS compliant name as default name and add legacy name as alias. | Add CODING_STANDARDS compliant name as default name and add legacy name as alias. | ||
- | 1) De facto standard names like string operation function | + | - De facto standard names like string operation function |
- | + | | |
- | 2) Other names like mb_encode_mimeheader() become alias of mb_encode_mime_header(). | + | |
- | + | | |
- | 3) Names in question are discussed in internals@lists.php.net | + | |
- | + | ||
- | 4) Aliases are not deprecated and should remain at least next 10 years or more. | + | |
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 44: | Line 41: | ||
===== New Constants ===== | ===== New Constants ===== | ||
- | There may be constants that are better to have better names(?) | + | There may be constants that may have better names(?) |
===== php.ini Defaults ===== | ===== php.ini Defaults ===== |
rfc/consistent-names.1390428311.txt.gz · Last modified: 2017/09/22 13:28 (external edit)