Path: csiph.com!news.nrbbs.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 28 Oct 2026 06:27:02 +0000 From: steve g Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement References: <119qf6l$2rmg3$1@dont-email.me> <11ba02r$3pl5h$1@dont-email.me> <11bnfpm$i84l$1@dont-email.me> <11bng23$iblc$1@dont-email.me> Date: Wed, 28 Oct 2026 02:27:02 -0400 Message-ID: <877bj2nxvt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:fDzf9+2yUPE1/CqSwY+AGgJfzKQ= MIME-Version: 1.0 Content-Type: text/plain Lines: 21 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-uc5a+Xlz+zDrcBUpBLrYCTwpNGBQhpPMvT414+8oDl18lgcditgWOIPRbqhs5WSe8MHolWJ/TVFTn/0!UvyTJ8Ro/b4RUkF88oxj38SM5UclxSuSLCkhtKKYWBjKL1Y= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: csiph.com comp.lang.c:403690 bartc writes: > On 26/10/2026 12:07, fir wrote: >> fir pisze: >>> if {} or if {} or if {} else {} >> this form in fact is not bad, it simply showst two things >> 1) you may use or outside the if clause (if this () can be named clause) >> 2) else in fact work on logical group but ias sole if is alos a case of >> logical group so else work on it sole in special case >> otherwiste thse keywords here if or and else are quite 'legit' >> if () {} >> or if () {} >> or if() {} >> else {} >> seems quite legit and it seem to ba a switch > Excellent. A great thing about this is, this can also be legal C, that works > now, if you just precede with this: > > #define or else be careful!