Article View: comp.lang.c
Article #1119Re: .5 against 0.5f
From: James Kuyper
Date: Thu, 29 Oct 2026 15:56
Date: Thu, 29 Oct 2026 15:56
25 lines
2592 bytes
2592 bytes
On 2026-10-28 21:50, Steven G. Kargl wrote: > On Wed, 28 Oct 2026 17:59:19 -0700, Tim Rentsch wrote: > >> "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> writes: >> >>> On Wed, 28 Oct 2026 16:39:00 -0700, Keith Thompson wrote: >>> >>>> (Also, you misspelled "ROFL", and you don't need parentheses on the >>>> return statement, particularly if you dislike fluff.) >>> >>> Yeah, I was laugh too hard while typing ;-) >>> >>> Parentheses is a habit from BSD kernel source file style guide. >> >> Now is a good time to start unlearning that habit. > > Why? What harm do the parentheses cause? They can lead to people thinking that return is a function, even if they nominally know better. What would you think of return (a=b).retval; You might never write such code, and might never read it either, but you should have no trouble parsing it. Do you?
Technical Details
Message-ID:
<11bvqbn$3g0tj$1@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>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: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Thu, 29 Oct 2026 11:56:38 -0400 Organization: A noiseless patient Spider Lines: 25 Message-ID: <11bvqbn$3g0tj$1@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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Thu, 29 Oct 2026 15:56:40 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3670963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19W+EidPhyZ0nniJacUBEYbZH0ACc5swyc="; posting-host="6000e33453145b8323e31059f269cc43" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Mb2nolgcunJZjxKsG2iOy1GeoxA= sha256:SwKS8lk3oAI90U71o0e8dUMapXT3lW0hBX5mKMNvxYI= sha1:3t/f/SvIyyJNcFgfc/yC7Bful3Y= sha256:RZMrX7bJk8xb5iYPiMN1gSRDiEvDCWBpQzJot+ML5p4= Content-Language: en-US In-Reply-To: <11bu8oi$2up7m$1@dont-email.me>