Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91558 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92740 invoked from network); 8 Mar 2016 22:40:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2016 22:40:41 -0000 Authentication-Results: pb1.pair.com header.from=pierrick@webstart.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pierrick@webstart.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webstart.fr from 209.85.161.177 cause and error) X-PHP-List-Original-Sender: pierrick@webstart.fr X-Host-Fingerprint: 209.85.161.177 mail-yw0-f177.google.com Received: from [209.85.161.177] ([209.85.161.177:33024] helo=mail-yw0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/02-15119-8E45FD65 for ; Tue, 08 Mar 2016 17:40:41 -0500 Received: by mail-yw0-f177.google.com with SMTP id d65so24911711ywb.0 for ; Tue, 08 Mar 2016 14:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=webstart-fr.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=afnagKJ687FTvtof/If0G04RJ90mqf0FAqBkHnPTy+Q=; b=vxIhzpMu3FdMY0BAAsTtvh+y30NLx9avFTZbX54tK9MZ+51tFhNtzUee5kq406oH5Z 1ZmsOH6M3x7m9gM4m9PVMNy0SO178WueKKJ4P4iV332ighcj2uN/RhAxVHXGB++RPf2f UwqKyDw9nr9X2P7b6Q/HCCgXCIhKOkumKUgtla9y9Cpzbr0gci463RLSUOkWbbndpWmB 1cyqlmjdT7nxW/ApbEqjJhGOYANGxBIrsbrHgQxo0w7Gz3qAixMhtL1IoypFIpQamki8 qBrel0ZPn+3zS2sWQLggxIG2t9SIxJ9oVc9WqrSAhPfyURR+TQzWNyEYi0gD639bYheO vRUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=afnagKJ687FTvtof/If0G04RJ90mqf0FAqBkHnPTy+Q=; b=EpHysR46FWTTYYjbyhLqkgfdDn4GxqAC0VA15KOZWqIPiaip1m/PmKW9ibkUyP33rf WeTecogLTOwTGV//Vl+GuXAyd0YZ2Se7n8iSE+Rnp4OJ++i7ysy/yfRLF6UuHq7CX60r RYPwCwfUzjlIn7DCkVkIkqEd2GO+u9GkY92BdVjhmlCUfevUM0eILKcsa0K2TbaNEfqI CflKQsZ9DG1vJE5yIySyGOwjW2pBtjY3BHo7gqHt8v+0DIFr6xzL+aVDmwnMbwkyxMWb RkWZpC3ZF/hLkxf0Jot2nmGVAoQIiy3E7tlIDujH+Dpz9xNuThL1ZI+jD9OO6+/eg84Z C9Cg== X-Gm-Message-State: AD7BkJJpyHuMTr/vcBRRgM+YjIeis5qaEoaqTN8BMckJqz42aBS8M0PZi9VHUVs63dg0ApsXOgJTxh4oG9DA7w== MIME-Version: 1.0 X-Received: by 10.129.110.197 with SMTP id j188mr16721983ywc.293.1457476838190; Tue, 08 Mar 2016 14:40:38 -0800 (PST) Sender: pierrick@webstart.fr Received: by 10.37.76.130 with HTTP; Tue, 8 Mar 2016 14:40:38 -0800 (PST) In-Reply-To: <20160308215059.GA92786@SeanLaptop> References: <20160308215059.GA92786@SeanLaptop> Date: Tue, 8 Mar 2016 17:40:38 -0500 X-Google-Sender-Auth: OcCxnbxa-044JdEJQrEPuGVpqOs Message-ID: To: Sean DuBois , yohgaki@ohgaki.net Cc: internals@lists.php.net, =?UTF-8?B?QnJvbmlzxYJhdyBCaWHFgmVr?= Content-Type: multipart/alternative; boundary=001a1146c95a35aefa052d9145a4 Subject: Re: [PHP-DEV] [RFC Discussion] Catching multiple exception types From: pierrick@adoy.net (Pierrick Charron) --001a1146c95a35aefa052d9145a4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Sean and Yasuo I agree that they are somehow related, but I also think (and I might be wrong) that the behaviour of the Multi-Catch is obvious and I don't see how this syntax/feature could be interpreted otherwise. The multi-catch don't have any open-issue that the Union-Types have like weak types since it only deals with Exceptions. Also, we still don't know if we'll one day have the Union-Types since there are those open issues and it would be sad to wait something that could never append. It's IMO pretty safe going forward and if required in the future change the implementation when needed (Behaviour will stay the same, unless you see other behaviour that this syntax could have in this same "catch" context). Pierrick On 8 March 2016 at 16:50, Sean DuBois wrote: > On Tue, Mar 08, 2016 at 04:42:29PM -0500, Pierrick Charron wrote: > > Hi internals, > > > > Bronis=C5=82aw Bia=C5=82ek and I would like to start a discussion about= allowing > > multiple exception types to be caught in a single catch statement. > > > > https://wiki.php.net/rfc/multiple-catch > > > > A working implementation and tests are available in the RFC. > > > > We are waiting for your constructive feedback and thoughts. > > > > Thanks > > Pierrick > > Hi! > > It may be an issue that this is close in design to [0] union types. > This RFC would be *great* for code quality, just might be a subset of > union types. > > thanks > > [0] https://wiki.php.net/rfc/union_types > --001a1146c95a35aefa052d9145a4--