Article View: comp.lang.c
Article #1148Re: .5 against 0.5f
From: Janis Papanagnou
Date: Fri, 30 Oct 2026 03:22
Date: Fri, 30 Oct 2026 03:22
18 lines
2514 bytes
2514 bytes
On 2026-10-30 00:46, Lawrence D’Oliveiro wrote: > On Thu, 29 Oct 2026 11:56:38 -0400, James Kuyper wrote: > >> They can lead to people thinking that return is a function ... > > There shouldn’t be a return statement at all. Smashing together the > assignment of the function result with termination of function > execution seems to me a code smell. I sense you may have the Algol 68 structure in mind (where all clauses just return the value that is _plainly stated_ without keyword); which is indeed very elegant for "normal" exits from functions. But we have to remember how "hard" (= ugly) it is to _early exit_ from functions there, needing an extra keyword, a special syntax rule, and a jump/label. Janis
Technical Details
Message-ID:
<11c12go$2t866$5@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <11br5td$1to7l$1@dont-email.me> <11br792$1u7e5$1@dont-email.me> <11brgqf$21170$2@dont-email.me> <11brkco$21oj5$1@dont-email.me> <11bs4tj$26daj$1@dont-email.me> <11bs613$26knh$1@dont-email.me> <11bt7ff$2i0ag$1@dont-email.me> <11btm2a$2ojn1$2@kst.eternal-september.org> <11bttrp$2qvg6$1@dont-email.me> <11bu12l$2rgo2$4@kst.eternal-september.org> <11bu3kk$2svh8$1@dont-email.me> <868q3hmie0.fsf@linuxsc.com> <11bu8oi$2up7m$1@dont-email.me> <11bvqbn$3g0tj$1@dont-email.me> <11c0lsj$3q5il$6@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Fri, 30 Oct 2026 04:22:00 +0100 Organization: A noiseless patient Spider Lines: 18 Message-ID: <11c12go$2t866$5@dont-email.me> References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <11br5td$1to7l$1@dont-email.me> <11br792$1u7e5$1@dont-email.me> <11brgqf$21170$2@dont-email.me> <11brkco$21oj5$1@dont-email.me> <11bs4tj$26daj$1@dont-email.me> <11bs613$26knh$1@dont-email.me> <11bt7ff$2i0ag$1@dont-email.me> <11btm2a$2ojn1$2@kst.eternal-september.org> <11bttrp$2qvg6$1@dont-email.me> <11bu12l$2rgo2$4@kst.eternal-september.org> <11bu3kk$2svh8$1@dont-email.me> <868q3hmie0.fsf@linuxsc.com> <11bu8oi$2up7m$1@dont-email.me> <11bvqbn$3g0tj$1@dont-email.me> <11c0lsj$3q5il$6@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Oct 2026 03:22:01 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3055814"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+F9GOwj34vHvlpqESTpDSe"; posting-host="0fda1f313dd998dda8e95c4840e29ea0" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:PfN54u9tJ2fqt+acKEtb3HSMDSM= sha256:Iq8zESO8fVddaAkCfVFh/1ct4+HA0KCzJRR3QtJA9nQ= sha1:2pmx6nFCaFjJ1/g7ZsVNi9lsvx8= sha256:9vx6PcqWcrx4cnKCVa/6duufSFFTGKoms1XfSaO8KyE= In-Reply-To: <11c0lsj$3q5il$6@dont-email.me> Content-Language: en-US