Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73892 invoked from network); 27 Apr 2013 12:16:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2013 12:16:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:39682] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/00-08285-981CB715 for ; Sat, 27 Apr 2013 08:16:10 -0400 Received: by mail-ie0-f169.google.com with SMTP id ar20so5973733iec.28 for ; Sat, 27 Apr 2013 05:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=4+rYrSbHD6g93lvLHfYxYJzAdCtNIa4cwu49Sj9ejFg=; b=bgQR7HGFse6bZpgde8CZhodkcre8n2nAmHdRFJXBAeGC+txZt2vW/uZQHwOqN2m36J X6qUCmH0f7x8fch2+AtFlOhvSGc1DosZHAcD26wPHaQVTHJEVjLbVnxrmhyIBZ0lgcc5 2fX9gEFUdGPIEw297HwHVGrui2fV7pvkbsfzTcAjj8ybR6XYgWXx8xbnfEiwvE+yhFOU vRHS34SsvAGe6ds9+pseH03zmISW+zY+wqqAkUf96A65bz0XqtLVZXn56HUEazvmxgog +TSZVF9bTFax1NJZXSAzOMU/Kp6iC5BAA1c2Rzy056XPmgFZYvNFRlq3Dw5FPiaWWgLK tN4A== MIME-Version: 1.0 X-Received: by 10.50.72.69 with SMTP id b5mr1396469igv.105.1367064967273; Sat, 27 Apr 2013 05:16:07 -0700 (PDT) Received: by 10.50.29.235 with HTTP; Sat, 27 Apr 2013 05:16:07 -0700 (PDT) Received: by 10.50.29.235 with HTTP; Sat, 27 Apr 2013 05:16:07 -0700 (PDT) In-Reply-To: References: <170891005.EmXIrsICLC@rofl> Date: Sat, 27 Apr 2013 14:16:07 +0200 Message-ID: To: Amaury Bouchard Cc: Julien Pauli , PHP Internals , Patrick Schaaf Content-Type: multipart/alternative; boundary=047d7b5d8f19c2629e04db569d1d Subject: Re: [PHP-DEV] Continued try blocks From: tyra3l@gmail.com (Ferenc Kovacs) --047d7b5d8f19c2629e04db569d1d Content-Type: text/plain; charset=UTF-8 > As Julien said, there is a BC break, when a try/catch block is written > inside a loop. But I think it's not a major usage, and it's a minor > inconvenient. Yeah, and catching and discarding exceptions also possible, albeit a minor inconvinience. I don't have a strong opinion on this feature(albeit I think it isn't a coincidence that most languages doesn't offer a dedicated solution to this problem) but please don't reuse the continue keyword for it. There are a bunch of code out there where which uses exceptions in a loop context. For example you have a retry counter decremented in a loop and you catch the exceptions and retry until the retry limit is reached. --047d7b5d8f19c2629e04db569d1d--