This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PPro patch for egcs



  In message <199806031836.OAA27416@jwlab.FEITH.COM>you write:
  > As a personal style issue I prefer using:
  > 
  >   switch ( variable )
  >     {
  >       case xxx:
  >         ...
  >         break;
  > 
  >       case yyy:
  >         ...
  >         break;
  > 
  >       .
  >       .
  >       .
  >     }
[ ... ]
Agreed.  Once you get more than 2 or 3 cascaded conditionals it
becomes much easier to read as a case statement.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]