Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > muc.lists.netbsd.source-changes > #156210
| From | Robert Elz <kre@munnari.OZ.AU> |
|---|---|
| Newsgroups | muc.lists.netbsd.source-changes |
| Subject | Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm) |
| Date | 2026-07-09 18:41 +0700 |
| Organization | Newsgate at muc.de e.V. |
| Message-ID | <27937.1783597260@jacaranda.noi.kre.to> (permalink) |
| References | <ak92forfqqXkRfqM@snips.stderr.spb.ru> <> |
Date: Thu, 9 Jul 2026 13:22:54 +0300
From: Valery Ushakov <uwe@stderr.spb.ru>
Message-ID: <ak92forfqqXkRfqM@snips.stderr.spb.ru>
| The code was something like this:
|
| This is, btw, why I hate winged "else".
|
| So just as
|
| if (foo) {
| ...
| } else if (bar) {
| ...
| }
|
| vs.
|
| if (foo) {
| ...
| }
| else if (bar) {
| ...
| }
Sorry, I see no difference in the two. Certainly cascading if else if ...
really need extra braces, and better indentation to make it clear what else
associates with which if, but I really cannot see how an extra linefeed makes
any difference at all.
kre
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Back to muc.lists.netbsd.source-changes | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm) Taylor R Campbell <riastradh@NetBSD.org> - 2026-07-08 15:31 +0000
Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm) Robert Elz <kre@munnari.OZ.AU> - 2026-07-09 06:59 +0700
Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm) Valery Ushakov <uwe@stderr.spb.ru> - 2026-07-09 13:22 +0300
Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm) Robert Elz <kre@munnari.OZ.AU> - 2026-07-09 18:41 +0700
Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm) Taylor R Campbell <riastradh@NetBSD.org> - 2026-07-09 23:18 +0000
Re: The --> "operator" Greg Troxel <gdt@lexort.com> - 2026-07-09 12:53 -0400
csiph-web