Re: Little question about switch CS

From: Date: Fri, 14 Jan 2005 20:44:46 +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-2332@lists.php.net to get a copy of this message
Hi Justin: On Thu, Jan 13, 2005 at 03:19:54PM -0800, Justin Patrin wrote: > On Thu, 13 Jan 2005 13:36:47 -0500, Daniel Convissor > <danielc@analysisandsolutions.com> wrote: > > > > One tweak should be made: the last "break;" is a waste. > > Except that keeping it is 1) consistent and 2) makes it easier to make > sure that cases added later don't break anything. Though the default case is supposed to be last in the list, so new cases should go above it, not below. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

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