`constexpr` should be mentioned and discussed on the `const` page
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- documentation
Research direction
Start with the Arduino Reference const page linked in the issue, then read the linked comparison of const and constexpr. Update that page to mention and discuss constexpr for C++ compile-time constants, with the relevant differences covered; completion is a clear, published documentation change on that page.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- No language data
- Stars
- 173
- Forks
- 704
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from arduino/reference-en
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
arduino/reference-en#1004 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
arduino/reference-en#992 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
arduino/reference-en#979 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
arduino/reference-en#1002 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
arduino/reference-en#1001 ·
All issues in arduino/reference-en
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100