Sujet : Re: constexpr keyword is unnecessary
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 13. Oct 2024, 15:33:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <veglom$n8io$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 13.10.2024 15:47, Bonita Montero wrote:
Am 13.10.2024 um 15:35 schrieb Janis Papanagnou:
On 13.10.2024 15:14, Bonita Montero wrote:
It can be understood in 10s.
I doubt that. - ...
LOL
What do I (in my role as a solution programmer) gain from it?
More expressive code.
This is not the least convincing. Since you seem to express only a
language/compiler-internal theme, not any application programmers'
demand.
Regarding "expressiveness" (on the programmer's level) the OP's
suggestion (to use "const") is fine already, and probably better
than introducing a new keyword thus (unnecessarily?) complicating
the matter. - That's why I (honestly) asked for a concrete gain,
to understand whether it's maybe necessary for reasons that are
not yet obvious (to me).
But I take your elusion concerning my question as a meta-answer
that there is no gain. So don't bother.
Janis