| Deutsch English Français Italiano |
|
<veobbv$28j4b$1@raubtier-asyl.eternal-september.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c Subject: Re: constexpr - C23 thoughts and opinions revisited Date: Wed, 16 Oct 2024 14:25:59 +0200 Organization: A noiseless patient Spider Lines: 12 Message-ID: <veobbv$28j4b$1@raubtier-asyl.eternal-september.org> References: <md5:RNErMQ2ubeOVkDmm860hoQ==> <veo9ii$288l8$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 16 Oct 2024 14:25:36 +0200 (CEST) Injection-Info: raubtier-asyl.eternal-september.org; posting-host="eb32c47516e96fcd0f9b34bd286e88a2"; logging-data="2378891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zDd+QxE9P+UTk2fByuH0ssE4X3aerF9Y=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2INJ9oXEdz/KH95DS+Y/jVYLsnY= Content-Language: de-DE In-Reply-To: <veo9ii$288l8$1@dont-email.me> Bytes: 1638 Am 16.10.2024 um 13:54 schrieb Thiago Adams: > I used to think, why execute code at compile time when it always yields > the same result? Wouldn't it be better to just leave the result pre- > calculated, avoiding slower compilation times and unnecessary compiler > complexity? > Also the noise. The code is easy to read, no matter if you make it constexpr or const. The language designers don't see the catastrophes you see with constexpr.