Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25653 invoked from network); 24 Jun 2013 23:20:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2013 23:20:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.48 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.212.48 mail-vb0-f48.google.com Received: from [209.85.212.48] ([209.85.212.48:64826] helo=mail-vb0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/BC-49518-624D8C15 for ; Mon, 24 Jun 2013 19:20:07 -0400 Received: by mail-vb0-f48.google.com with SMTP id w15so8675962vbf.21 for ; Mon, 24 Jun 2013 16:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=j4I7mYzpDUniXJZidCpwDo9AV18AsADhVjFhoMSllDc=; b=0B2At0M3WZbyb5BnDqkD/XwA4WQ1VkgIGYQTL+/9h+KH9BpLIZAUH0ZXt/qO8XrzVq 4pJr5Op27dnLYg7JK2PLcWsQ3VLhzV2uhE+bJY6U5W5jWkUVLScMNvp3h6sEQ7PkK9r5 qsi4wQNdlPat8AzEdvmFLk/D8qsNYxcBDvT58Jhp/ZI32u8iU8Y4ZX6kmu0H/zQyDOt+ 3gQXCmIW/5gym80+wOZkY/LDcbI5N5qPfuz3QY2Loduulfr8yyDnAn0nT7u+lhL1cPfI BDNwrIDovVMvp/1MNvZ2hlsYHkTT7oEuxZJAUX/k0MPuST51De1+dRoTvAXrfeLS71kX xkIQ== MIME-Version: 1.0 X-Received: by 10.52.33.47 with SMTP id o15mr10818659vdi.1.1372116003869; Mon, 24 Jun 2013 16:20:03 -0700 (PDT) Received: by 10.58.94.201 with HTTP; Mon, 24 Jun 2013 16:20:03 -0700 (PDT) In-Reply-To: References: Date: Mon, 24 Jun 2013 19:20:03 -0400 Message-ID: To: Joost Koehoorn Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf307ca18400717c04dfeea7eb Subject: Re: [PHP-DEV] Announcing RFC 'Anonymous Catches' From: ircmaxell@gmail.com (Anthony Ferrara) --20cf307ca18400717c04dfeea7eb Content-Type: text/plain; charset=ISO-8859-1 Joost, First off, let me say welcome and thanks for the contribution! I have a couple of questions around the intended proposal. 1. How do you plan on handling the case where there are multiple catch blocks? try { code(); } catch { doSomething(); } catch { doSomethingElse(); } 2. You mention as a benefit "Better possibilities for static analysis tools". Can you elaborate on this? I don't see how this sort of a change would have any effect (as catch would be the same as the existing `catch (\Exception $e)`)... 3. What benefit short of not having to type `(\Exception $e)` would this have? Populating the symbol table is extremely cheap at this stage, because the variable is already compiled in (so no hash table lookup or anything). Additionally, I would recommend changing the version target to 5.NEXT (which would be 5.6 in practice). As far as my personal feelings, I'd like to get some other commentary first. Thanks again!!! Anthony --20cf307ca18400717c04dfeea7eb--