4 ms·
If you use only explicit constructors and ban cast operators except for the most basic of types, then you have a sane language and explicitness in your code.
by jfkebwjsbx 7y ago
If you use only explicit constructors and ban cast operators except for the most basic of types, then you have a sane language and explicitness in your code.
- MaxBarraclough 7y agoSounds sensible. Google seems to agree with you. https://google.github.io/styleguide/cppguide.html#Implicit_Conversions https://google.github.io/styleguide/cppguide.html#Implicit_C... LLVM's coding standard though doesn't seem to have anything to say about implicit conversions: https://llvm.org/docs/CodingStandards.html https://llvm.org/docs/CodingStandards.html
- GoblinSlayer 6y agoIt's sane on C++ scale, but on absolute scale that sanity is still wanting, Sutter mentions this.