rfc:case_insensitive_constant_deprecation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:case_insensitive_constant_deprecation [2018/06/24 11:07] – Move to under discussion nikic | rfc:case_insensitive_constant_deprecation [2018/06/24 12:18] – nikic | ||
---|---|---|---|
Line 74: | Line 74: | ||
This is an issue that can in principle be resolved, however it would come with significant additional implementation complexity and a hit to performance and memory usage. At the least, it would require storing lower-cased variants of all constants and checking against them on new constant declarations. | This is an issue that can in principle be resolved, however it would come with significant additional implementation complexity and a hit to performance and memory usage. At the least, it would require storing lower-cased variants of all constants and checking against them on new constant declarations. | ||
- | ==== Implementation overhead ==== | + | ==== Implementation |
Support for case-insensitive constants makes the implementation more complex and slower. Constant lookups are implemented by first looking up the constant name directly, and then looking up a lowercased variant. | Support for case-insensitive constants makes the implementation more complex and slower. Constant lookups are implemented by first looking up the constant name directly, and then looking up a lowercased variant. | ||
- | A particularly extreme case are access to unqualified constants inside namespaces. For example, if constant '' | + | A particularly extreme case are access to unqualified constants inside namespaces. For example, if constant '' |
| | ||
===== Proposal ===== | ===== Proposal ===== |
rfc/case_insensitive_constant_deprecation.txt · Last modified: 2018/07/16 17:18 by nikic