Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92673 invoked from network); 19 Apr 2016 00:54:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2016 00:54:39 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.178 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.178 mail-pf0-f178.google.com Received: from [209.85.192.178] ([209.85.192.178:33636] helo=mail-pf0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/41-11975-DC185175 for ; Mon, 18 Apr 2016 20:54:39 -0400 Received: by mail-pf0-f178.google.com with SMTP id 184so620361pff.0 for ; Mon, 18 Apr 2016 17:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=qG6FVSHZZfcBYmED0Sb6ErOlUTbvloy126egkCC2WD8=; b=pxDjJPRt8Y3TZLZpLYycI5X2JYLJZI5/i/wGAw1FFGqrK4Je+n7uHjRun1ZjG+0G3A lG+QvHlg07zD4ZXeHWmr1MkdSUpx4+Eh7R2LtU1E9HsT0tuE550Jy8YMpxqdOXDYIFgl XzM9raLYATwEMo2ilFv1jxYoSLjEf6UtyE914Gvrd+cBaWIEhqPO+iLtEdPJqiwapYty +AL1v12ulhYA8CIN7WZnMjfvuWovPyRBUvFaPYy8zklq+OZMZRuHSVhaamHIc/Afu7gN /9RqHhdtdAw23/J4i0lscijP5ZxeGqfNkxJRL2SDV/alc/p5sanM+avUVFuk2pASKojv 8c2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=qG6FVSHZZfcBYmED0Sb6ErOlUTbvloy126egkCC2WD8=; b=hd897zBgvRHx6s2eMkg/4J38YAYsv0tGTSmHhF5q6/937aB96drQCOORF10UjwSWPb bIdtVvbhyXxgHyZLBQLDORcBJlSkE+9Y1vC1ejrD0Xo10MDOC9/X+1iqzMMefs89FpEN ssbnaRNxzRo21W6oirx/MCPSTXh9wUBnolaG48FvVPB5hBGZiGCTb9KZn4FhPKsm9dJX yfh2oOhwicJWjHKS5l9PhG2ppCjpqUoaZSqCP8TvfPnMIg5AClJqSmkQge3M8Lj25lWT F6SDTiZamvzxWC+mJbU4kxqzkUfiAi786R+sBsDu0uXkdThMEoWkG0hDRFG9f5I1b4hX KoYg== X-Gm-Message-State: AOPr4FVqv+xMsHSYeLsUKsdtraFqEr6OFJ1cv1XGwQDgntc/Eqh3mz93woheMZyvwZaibQ== X-Received: by 10.98.93.29 with SMTP id r29mr216835pfb.18.1461027274439; Mon, 18 Apr 2016 17:54:34 -0700 (PDT) Received: from Stas-Air.local (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id d2sm46381656pfd.80.2016.04.18.17.54.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2016 17:54:32 -0700 (PDT) To: bishop@php.net References: Cc: PHP internals Message-ID: <571581C7.7010901@gmail.com> Date: Mon, 18 Apr 2016 17:54:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Catching Multiple Exception Types From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > catch constitutes a formal signature, exactly like a function signature. In > my mind, this proposal and the union types proposal are intrinsically tied. > If we have one, we must have the other. If not, we're inducing a sadness. This has nothing to do with union types. It is just a shortcut for repeated catch() clauses, it does not introduce anything into type system, capture existing use case, and doesn't make anything more complicated. While union types introduce a lot of new things, make everything dealing with types more complicated and the need for them, unless we import a real lot of other concepts like type pattern matching is quite unclear. So I don't think this has much in common. -- Stas Malyshev smalyshev@gmail.com