Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64050 invoked from network); 14 Jun 2016 22:51:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2016 22:51:08 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.192.182 mail-pf0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:35106] helo=mail-pf0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/B6-27860-B5A80675 for ; Tue, 14 Jun 2016 18:51:07 -0400 Received: by mail-pf0-f182.google.com with SMTP id c2so1883845pfa.2 for ; Tue, 14 Jun 2016 15:51:07 -0700 (PDT) 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:content-transfer-encoding; bh=9JRFgTcOjCZBkAImYet/2/66BfKuF5ZeKdPptJwCAyw=; b=mwBDcqk+gAnSNenq2c56RauugeMteH1vu6s47PsFCvf5UkzW3u+YCL7hAPQRVwDFYA k9zbVbnBDXvONOvu9pQNEPa61LvGpUHs4LN5g1YkvCRDuOLB1YQaH/P6GzoLZYwze7Zu +9KFThnkfn3YhsuwR+MBeelhbUmgkmFt/OzpOW9pVrOYnHT1DE3PF3OSINPStBWCemqM o7OI8CEgRbxqjESsNg5yMN92aoKp784YLjFkYsjnDguAGiMdX6To1cL6Cw9WydMSEldW JNrsIkkk2HjT8G/Jg6q8ZOEDg/jhZQBujLrt00uo45gRjJ4x8iyqj2fuGmScNJlKthfI 1Fuw== 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:content-transfer-encoding; bh=9JRFgTcOjCZBkAImYet/2/66BfKuF5ZeKdPptJwCAyw=; b=BESk72oNXZIAMLH6cXCfiqzwhItTM/lWCLEF+z6HIXh0RTuPtfbL1dWH1rPSDRnfgA MebhLrCrqTQiCX3uezvm43UIC0+RPUq30aqfSz+eKIgT8HKegazS4UFP7+u2Ep2buQ0N sfCEcF0DS4lIFLvbUD2IVkHYKM4dRG3tgEjS+bpqEZB9Dfo99dQAQar70q7RgytoSfOE xpSfRkaWHBPhlwxkFBF1UE5k3rcyS9uNC0SgtocpY/5w9sbYi7t1vU2UekV0LO0tk7jF CClQtjOCIOkibez4BylmlkKCub2VbyW9up6swlhxVONaggDIBBu7yQM7D/SJOH7Z+wUA JKlg== X-Gm-Message-State: ALyK8tINxyJEgBfc9p5L4enJSDr/eeqYwvktDYnOdqUlIa6mHUHIFFK/d/uaCnR9yqSyUAkJdp7iX5J6qVvZIw== X-Received: by 10.98.29.81 with SMTP id d78mr66804pfd.142.1465944664537; Tue, 14 Jun 2016 15:51:04 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.66.236.137 with HTTP; Tue, 14 Jun 2016 15:51:03 -0700 (PDT) In-Reply-To: <619DDA1B-0722-4487-B545-7EB7FDB2BE7C@zend.com> References: <8d26c709-2083-40ac-3bb5-cddc0ecef4bd@gmail.com> <6B3C4F2A-22D6-4004-9F14-5E43EA8AD52A@zend.com> <619DDA1B-0722-4487-B545-7EB7FDB2BE7C@zend.com> Date: Tue, 14 Jun 2016 16:51:03 -0600 X-Google-Sender-Auth: 6Ech_OIYyM_T1qX_PB4P84Vc4iI Message-ID: To: Zeev Suraski Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [VOTE] Union types From: levim@php.net (Levi Morrison) On Tue, Jun 14, 2016 at 2:43 PM, Zeev Suraski wrote: > > On 14 =D7=91=D7=99=D7=95=D7=A0=D7=99 2016, at 22:53, Levi Morrison wrote: > > I'm personally against Union types because it makes no sense for classes > > > I've been over this before but I'll repeat it here for completeness: > this is not true. > > > There are more than enough constructs in PHP to handle all these use case= s, > and handle them nicely. We don't need specialized constructs for every u= se > case. To clarify here, you are saying we don't need unions because they are a special case, yes? But you previously stated you are in favor of special casing the language types such as numeric? These are at odds.