Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36799 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48593 invoked from network); 4 Apr 2008 10:35:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Apr 2008 10:35:48 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.187 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 64.233.182.187 nf-out-0910.google.com Received: from [64.233.182.187] ([64.233.182.187:7028] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/F2-31908-28406F74 for ; Fri, 04 Apr 2008 05:35:47 -0500 Received: by nf-out-0910.google.com with SMTP id e27so1942661nfd.13 for ; Fri, 04 Apr 2008 03:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=eECruoldIVDAI9kQRknUe5cpcvBATJl4mh2IMfQtDSU=; b=EW0YxISfC6PDHoAgmSk45NbmtvS4yu0M8pRoxnDRrFL2AAm5E/T9+2u+lbmH48kTIznxXEu/r2ikwYzIX9YdUf64E8x9e6IoaTsJtZS3n30kpOzNfmvAJ2A09ks+5tm0aHnxoVLTe6oLjxtrJTsuezM46o09EhZwHVzuBpHL1e8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=sri1oRtAZ+qj19500pviBQUwWb/hTV3hiVzg5PdZ6gvsAYo1X+lCjDtxjYqsXXTLp0b6cj/7j1WEuUu2U7nNFAQroiHSQQIwh/i3WdQcDGX62YKDwvUaJB5RCuyAuh52sgE6T0X3T40H78eaVjySxcKiOTgRP0sAPNM4eZ37A2s= Received: by 10.78.193.5 with SMTP id q5mr2863894huf.59.1207305342217; Fri, 04 Apr 2008 03:35:42 -0700 (PDT) Received: by 10.66.219.9 with HTTP; Fri, 4 Apr 2008 03:35:42 -0700 (PDT) Message-ID: <9b3df6a50804040335pc001765r5e0fa641a0edfc99@mail.gmail.com> Date: Fri, 4 Apr 2008 13:35:42 +0300 To: "Alexey Zakhlestin" Cc: "PHP internals" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5614_2111635.1207305342172" References: <9b3df6a50804040143k519e4269vb11c9546a289ce1d@mail.gmail.com> Subject: Re: [PHP-DEV] The "jump" operator From: arvids.godjuks@gmail.com ("Arvids Godjuks") ------=_Part_5614_2111635.1207305342172 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Well, why even add such functionality if it's doubtful it will be used. It just ads confusion and anger to users, who knows what it does and what harm can be done. GOTO functionality wasn't present in PHP and i think should never be ever. break is fine.. 2008/4/4, Alexey Zakhlestin : > > On Fri, Apr 4, 2008 at 1:17 PM, Arvids Godjuks > wrote: > > just emotions, sorry. > > > > But why you didn't keep the "break [1,2,3];" ? That was fine and > > understandable and it was limited to loops, but with this will make code > > messy, especially with if statements. I personally woun't use it at all, > but > > it will be hell to get into badly coded projects with "jump"'s in it. > And it > > was easily done with try/catch. > > > break [1,2,3] is still there > > the following was removed > > $i = 2; > break $i; > > while I, personnaly, agree, that for error-handling situations > try/catch is a superior solution, the new "goto" construct can be > useful for micro-optimizations > I doubt, I will be using it, though :-) > > p.s. you replied me offlist. you should "cc" it, if you want to keep > discussion running > > > > 2008/4/4, Alexey Zakhlestin : > > > > > On Fri, Apr 4, 2008 at 12:43 PM, Arvids Godjuks > > > wrote: > > > > Link: http://news.php.net/php.internals/36536 > > > > One question - are you crazy? I heared about break with goto > > capabilities - > > > > that's understandable - you could break 2 or 3 level loops, but > this > > one > > > > shit. > > > > > > > > > Could you please keep polite language? > > > Details of this construct were known for quite a long time, and it was > > > available in PHP6 for "ages" > > > > > > it is a limited goto, just as advertised. you can get out of blocks > > > with it, but you can't go into blocks > > > > > > > > > -- > > > Alexey Zakhlestin > > > http://blog.milkfarmsoft.com/ > > > > > > > > -- > > Alexey Zakhlestin > http://blog.milkfarmsoft.com/ > ------=_Part_5614_2111635.1207305342172--