Sujet : Re: constexpr keyword is unnecessary
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 13. Oct 2024, 16:19:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vegodm$nkel$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
Am 13.10.2024 um 17:03 schrieb Janis Papanagnou:
For me, writing int i = 0; and const int i = 0; is perfectly
readable, and (unnecessarily!) adding another keyword degrades
readability.
The difference is that for local variable const can be overridden
since this const is only logical constness but not physical const-
ness. This minimalist mindset is simply no longer up to date and,
considering the simplicity of the feature, simply absurd.