Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero Newsgroups: comp.lang.c Subject: Re: constexpr keyword is unnecessary Date: Sun, 13 Oct 2024 17:19:40 +0200 Organization: A noiseless patient Spider Lines: 11 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 13 Oct 2024 17:19:18 +0200 (CEST) Injection-Info: raubtier-asyl.eternal-september.org; posting-host="c70044d56ce67ca2d81b0f66bfd60be6"; logging-data="774613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0mT5hvnhVc3vbnzkLD22IZ6O0BqLGinY=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:gzAvrs7GV2hriHbsn5yrBmQSkjE= Content-Language: de-DE In-Reply-To: Bytes: 2090 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.