Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: The --> "operator" (was: Re: CVS commit: src/sys/uvm)



    Date:        Thu, 9 Jul 2026 13:22:54 +0300
    From:        Valery Ushakov <uwe%stderr.spb.ru@localhost>
    Message-ID:  <ak92forfqqXkRfqM%snips.stderr.spb.ru@localhost>


  | 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



Home | Main Index | Thread Index | Old Index