Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91557 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90233 invoked from network); 8 Mar 2016 22:09:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2016 22:09:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.47 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.47 mail-vk0-f47.google.com Received: from [209.85.213.47] ([209.85.213.47:35973] helo=mail-vk0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/A1-15119-D9D4FD65 for ; Tue, 08 Mar 2016 17:09:33 -0500 Received: by mail-vk0-f47.google.com with SMTP id c3so34488646vkb.3 for ; Tue, 08 Mar 2016 14:09:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CUAOMga+9VX55bVxzo+LZLz//yz78UVQ7LlmVOzU828=; b=GtSkLg+lnHtxP+GvRSLeNh8EJSkMkGH2yzOa1/HScqt0Kgcpnq7w7Wr1gJ1pCeRi6+ 1maSmgLl55gd2bgsyVh1eT7MhcEPISL2Q3vD01wCeKiJHBNf1ejd6XwSdhIYCuQdFRWy 2AjLeMTyGzYT1h1p4cp0nrzDMdl6lSwcEH/BFOXO1EdxDAi8pdFcvhPcculL7+oeNVSJ rwft14+meAAd7nkFsjzcSMmzdzVf3Fffk2qCPyrhBo+Cq/AYBUPH37ohPfzvoD7oq7SU lve2xSNi+s4JknRS+cayAnjZhnIRXMHeJp6TLZGHP+zKpwGgFjNDVap17TNaHA7kVUX7 HSHg== 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:from :date:message-id:subject:to:cc; bh=CUAOMga+9VX55bVxzo+LZLz//yz78UVQ7LlmVOzU828=; b=J3QxzIVmPLWzB2tWBh4RYUFWptx7Smy6HsvxdQd45/X/aCcC2UFMEr1R3u1wyPvp+9 IZHhIPBxnM5cW89izmIiaY6w/tAcy9ipesKlR+83OMI3c4dAa8H8mulC0EFsKVEfg3rA rId6hLiO7G4QJmNja5xf1e8f2gcY0RwJq7MuuSRDTo0bh70OB9DqKSpJZnHDd2Y77fcd RWpTyCgz4h1T2bRFYHgmCj3tkuKMmKyIwXDFZyVQkfecPZVBAS1sKnFuuowm5GAWNIla zfm0vQlxEWYpQhsKD+Z//0vhgGvAfeSjUSo2bUEwsZNMu/rLugxPZisEU6mJloY+nQjH poSQ== X-Gm-Message-State: AD7BkJKHEaOVRG77iWAwZbsfMk6tzD6zxSn595rSyd702YJr/HMBIvQSWSN2nFdd3s+ytMWJqDYtGDjP2KMySA== X-Received: by 10.31.21.4 with SMTP id 4mr28510704vkv.151.1457474970602; Tue, 08 Mar 2016 14:09:30 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.159.35.77 with HTTP; Tue, 8 Mar 2016 14:08:51 -0800 (PST) In-Reply-To: <20160308215059.GA92786@SeanLaptop> References: <20160308215059.GA92786@SeanLaptop> Date: Wed, 9 Mar 2016 07:08:51 +0900 X-Google-Sender-Auth: yaGQ3X-UOvdlcwQUENJ-vExjwG8 Message-ID: To: Sean DuBois Cc: Pierrick Charron , "internals@lists.php.net" , =?UTF-8?B?QnJvbmlzxYJhdyBCaWHFgmVr?= Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC Discussion] Catching multiple exception types From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Wed, Mar 9, 2016 at 6:50 AM, Sean DuBois wrote: > 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 Nice and handy! If we are going to support this kind of code, union types seem better way. However, I have mixed feeling.. Current PHP has issues like string literal/string type/__toStringed object are treated differently. For instance, http://www.phpwtf.org/instanceof-smart I would like to sort out and fix these kind of issues first. i.e. Let array type Traversable Just my .02 Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net