Re: GOTO and/or BREAK LABEL

From: Date: Tue, 07 Mar 2006 17:58:13 +0000
Subject: Re: GOTO and/or BREAK LABEL
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-22219@lists.php.net to get a copy of this message
if($choice == 1) { goto bad; } else if ($choice == 2) { goto good; } else if ($choice == 3) { goto bad; } else if ($choice == 4) { goto good; } good: $vote++; bad: return; On Tue, 2006-03-07 at 12:50 -0500, Robert Cummings wrote: > On Tue, 2006-03-07 at 04:28, Dmitry Stogov wrote: > > Hi, > > > > Because of some confused people I reverted "break label" patch and post it > > for discussion once again together with GOTO patch. > > > > Please reviw and vote. > > > > 1) goto and break label > > 2) goto only (like C) > > 3) break label only (like Java) > > 4) nothing > > 2) +1 > > What's the policy on voting btw? Am I allowed? > > Cheers, > Rob. > -- > .------------------------------------------------------------. > | InterJinn Application Framework - http://www.interjinn.com | > :------------------------------------------------------------: > | An application and templating framework for PHP. Boasting | > | a powerful, scalable system for accessing system services | > | such as forms, properties, sessions, and caches. InterJinn | > | also provides an extremely flexible architecture for | > | creating re-usable components quickly and easily. | > `------------------------------------------------------------' >

« previous php.internals (#22219) next »