Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67172 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22381 invoked from network); 26 Apr 2013 17:14:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2013 17:14:58 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.171 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.128.171 mail-ve0-f171.google.com Received: from [209.85.128.171] ([209.85.128.171:37470] helo=mail-ve0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/86-15719-116BA715 for ; Fri, 26 Apr 2013 13:14:58 -0400 Received: by mail-ve0-f171.google.com with SMTP id oy12so461558veb.16 for ; Fri, 26 Apr 2013 10:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=cJavYepav/gFwf0UMWoQ7vNl4qGPo8nJMpmG1GXIzdI=; b=JAz5IMTuumzs9qL7ojfRX1QO50hl91tZ9nn8BfFMTJ9iyMc6iW1pjeheRot8AmBwRH mteEJ0YprvsYLGEYFfMdjrQd3P1oGUMOt12vP1p+EZ1mOJoCoOe4yDg0NwRToTY6XJ3w nUIL+Q8aFdXy6iZEdXn27HB/7laKLmR8Mj0zDR1UWKxBeGwctHcHfD4ht2LNfSpIImIU 7ZANWVyCA4yceWNI9e3SQcJJMBdKWTwWWoi5sCY+k9cxKFrUJtf5o95dkcS21JnJGLcX tUEnvyE7y5lVSADnmsSovW7YdqYL0IqTSCkabwXoO6hnpdS9cH+q8kpcOFBZjp1IAPwQ 4cyQ== MIME-Version: 1.0 X-Received: by 10.52.0.102 with SMTP id 6mr24388943vdd.89.1366996494784; Fri, 26 Apr 2013 10:14:54 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.58.212.34 with HTTP; Fri, 26 Apr 2013 10:14:54 -0700 (PDT) In-Reply-To: References: Date: Fri, 26 Apr 2013 19:14:54 +0200 X-Google-Sender-Auth: inerQWNm4mkNEDrBWTGUvnTdMsw Message-ID: To: Lazare Inepologlou Cc: Julien Pauli , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Continued try blocks From: kalle@php.net (Kalle Sommer Nielsen) Hi 2013/4/26 Lazare Inepologlou : > This seems like a BC break: > > for ( ; ; ) { > try { > ... > } catch (Exception $e) { > continue; > } > } > > With the proposed syntax, "continue" will no longer refer to the "for" loop. Well, at the moment "continue" is assigned to only usage in loops, we also have "break" (switch) which works for both loops and construct, if break is used inside a construct, thats inside a loop, it will be seen as a part of the construct, we could change continue to work the same as that. -- regards, Kalle Sommer Nielsen kalle@php.net