reference-en icon indicating copy to clipboard operation
reference-en copied to clipboard

`constexpr` should be mentioned and discussed on the `const` page

Open ElectricRCAircraftGuy opened this issue 5 years ago • 0 comments

constexpr is preferred over const for C++ compile-time constants, and should be mentioned and discussed here:

https://www.arduino.cc/reference/en/language/variables/variable-scope--qualifiers/const/

Here's some of the differences to be aware of: https://stackoverflow.com/questions/13346879/const-vs-constexpr-on-variables/13347355#13347355

ElectricRCAircraftGuy avatar Oct 25 '19 19:10 ElectricRCAircraftGuy