rfc:consistent-names
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:consistent-names [2014/01/22 22:03] – yohgaki | rfc:consistent-names [2014/04/08 23:06] – Converted to actual list. levim | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== 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 16: | Line 16: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Add CODING_STANDARDS compliant | + | Add CODING_STANDARDS compliant |
- | 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 | + | |
- | + | ||
- | Aliases are not deprecated 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.txt · Last modified: 2021/03/27 14:32 by ilutov