Re: Little question about switch CS

From: Date: Fri, 14 Jan 2005 09:29:38 +0000
Subject: Re: Little question about switch CS
References: 1 2 3  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-2330@lists.php.net to get a copy of this message
Daniel Convissor wrote:
On Thu, Jan 13, 2005 at 05:19:54PM +0000, Helgi ?ormar wrote: The switch statement section is definitely the most common "let's revise the standard" thread. There was one back in early '04, if I remember correctly. I prefer the following for both short and long: switch (condition) {
     case 1:
         action1;
         break;
      case 2:
         action2;
         break;
      default:
         defaultaction;
} Similar to the existing standard, but with the cases indented, just like every other bracketed thing in the standard.
+1 here, too... but for some reason, CS is a holy cow and any time you touch it, everyone starts clamoring for other changes. If CS is decreed from on high, that's not a problem. But if you have to run an RFC through, after the first RFC, everyone and their brother will submit an RFC and I'm not too thrilled by that prospect. IMHO, we need The PEAR Group to make a decision regarding changing CS. I'd be happy if it would be a joint effort between The Group and the QA Core Team (with joint voting) rather than throwing it open to pear-dev. And no, I'm against frivolous changes. If it doesn't make the code cleaner, reading it easier or the code run faster, let's forget about it. Klaus

« previous php.pear.qa (#2330) next »