зеркало из https://github.com/mozilla/gecko-dev.git
02e9792c14
This commit resolves the question posed in [1], largely on the basis of the rationale put forth by emilio [2]. The reasons cited for using signed types boil down to (1) taking advantage of UB optimizations, (2) more tractable dynamic overflow analysis, and (3) increased chance of the surrounding logic identifying and rejecting overflowed values. Emilio points out that (1) is not a durable advantage. I see some value in (2) and (3), but I see more value in consistency with existing code and clear communication of semantic intent to the reader. [1] https://groups.google.com/a/mozilla.org/g/dev-platform/c/-h_2cz5APmY/ [2] https://groups.google.com/a/mozilla.org/g/dev-platform/c/-h_2cz5APmY/m/NPdl2uIhAgAJ Differential Revision: https://phabricator.services.mozilla.com/D130928 |
||
---|---|---|
.. | ||
_static | ||
bug-mgmt | ||
code-quality | ||
contributing | ||
crash-reporting | ||
gtest | ||
metrics | ||
performance | ||
setup | ||
testing-rust-code | ||
writing-rust-code | ||
conf.py | ||
config.yml | ||
index.rst | ||
jsdoc.json |