Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33024 invoked from network); 14 Jun 2016 18:52:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2016 18:52:34 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 40.107.70.135 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 40.107.70.135 mail-eopbgr700135.outbound.protection.outlook.com Received: from [40.107.70.135] ([40.107.70.135:17344] helo=na01-by2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/01-27860-07250675 for ; Tue, 14 Jun 2016 14:52:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YZiR8UGOnxi7mvpUO9l2yNPCfAEswa5xuF4euDUnCds=; b=kjQfSU2wiuwi2/1SY6oGquLRIXpchnMrr8cOP9yLoXF2g9FMOYZBw7tSZMXAENXxDmVZx2ReLujq5piwQ94KhNH+xoohSrmzZ3nzzV3PPLf0/x5D4DeztrL3Gr3O2xMyI1xAkcT3iaDAHDL5HhbQAElm9lRxcyCXpuqyYjsSmac= Received: from BY2PR02MB298.namprd02.prod.outlook.com (10.141.140.21) by BY2PR02MB299.namprd02.prod.outlook.com (10.141.140.22) with Microsoft SMTP Server (TLS) id 15.1.517.8; Tue, 14 Jun 2016 18:52:28 +0000 Received: from BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) by BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) with mapi id 15.01.0517.013; Tue, 14 Jun 2016 18:52:28 +0000 To: Stanislav Malyshev CC: Bob Weinand , PHP internals , Derick Rethans Thread-Topic: [PHP-DEV] [RFC] [VOTE] Union types Thread-Index: AQHRxk1UiCsarQhIYkaji+gxB/0N7J/pFJIAgAANMoCAAAdngIAAF2WAgAAOobQ= Date: Tue, 14 Jun 2016 18:52:28 +0000 Message-ID: <6B3C4F2A-22D6-4004-9F14-5E43EA8AD52A@zend.com> References: ,<8d26c709-2083-40ac-3bb5-cddc0ecef4bd@gmail.com> In-Reply-To: <8d26c709-2083-40ac-3bb5-cddc0ecef4bd@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zeev@zend.com; x-originating-ip: [87.70.80.22] x-ms-office365-filtering-correlation-id: 7d8b32e2-4551-4417-daf3-08d394850898 x-microsoft-exchange-diagnostics: 1;BY2PR02MB299;6:K5VMCYFm8GcTN/8ESRrsmlmWGfLESkC0BILx2rYA2QpD4KXCJKf8nNGstlDFeGVOEmxazsrHM5gb5ijZcui4huiWPIaJO0hcVdRwB6BG9eXn1lLd4bJzmUi5P5/y8TEOqI4JQsI+NDg3gVXT7vTOW1EeovaRxC/Kj1iTqPM+MULhxBwqKjdVw+ToTJGKMwwcHEGwRApi22Pqi2Rc5+8jRwuJdOUhzMVql5zpxEh6eRUC1qKeGApFwOz7zns7LcVyaTD0GDdRz/SqRQO/f0ilsY5juWMQzlKnak+WRpin/pw=;5:uv5YIdeKHmptL2hX8Fg7z6BUCY4xLsSIlbWg/3pPOvmv7lMzPAAOgRuh43tzaV2MXPBprxLSsu4PajirCt+sKJjMKwVpOwDpVFKNrCqHHmk7+Y8rDm7X6jGCueMG6cLHE+WN64cicaWsqW3H7AmFNg==;24:YjYwXJE9FOUQ+V0jCZTnHCm8t1EDMDoe1YtkfweZ9GaN7JTB+PfpI8oj1bwFh4vAoG/3JYfqtiKHJhp9/HmvBdOSyU4UcdoeEATFd2jPR1A=;7:tBwY9BmoQ50KmI4Qh0/BUl1QxW8jWrohtT0nOOcYsDtvRnI7JFQZYHqtoD9FgoPILLQ6xf/1b+3RteDmTKRwc0CcBOuT7d4MW3pNzBiwCoeHYRU/v8MJRMHTdLkhiFlU3QCsMkN5Suz2TyuZSo0dE32jMxLW2e0UvTdNuk7dG7eAKDIyFuhWRbviMnXK4t17rNAg+MPibObQdfc5rmdPEBgBce29GaIPehiJsYJTOpg= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB299; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR02MB299;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB299; x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(24454002)(199003)(189002)(122556002)(86362001)(82746002)(4326007)(66066001)(83716003)(99286002)(106116001)(2906002)(105586002)(106356001)(586003)(11100500001)(102836003)(3846002)(1411001)(6116002)(10400500002)(8936002)(19580405001)(5004730100002)(77096005)(36756003)(5002640100001)(19580395003)(54356999)(76176999)(2950100001)(189998001)(2900100001)(87936001)(33656002)(3280700002)(93886004)(101416001)(5008740100001)(92566002)(81166006)(81156014)(8676002)(50986999)(97736004)(3660700001)(110136002)(68736007)(104396002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR02MB299;H:BY2PR02MB298.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;CAT:NONE;LANG:en;CAT:NONE; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-8-i" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2016 18:52:28.4074 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB299 Subject: Re: [PHP-DEV] [RFC] [VOTE] Union types From: zeev@zend.com (Zeev Suraski) > On 14 =E1=E9=E5=F0=E9 2016, at 21:00, Stanislav Malyshev wrote: >=20 > Hi! >=20 >> The separate vote is to remove ?string by string | null as only option. >=20 > So we just held a vote on introducing ?type a month ago, to now vote on > removing it. Am I the only one to whom it doesn't make a lot of sense? >=20 I actually think this was discussed ahead of time. The thinking was that w= e'll approve (or reject) nullable types independently without having to wai= t for union types. If Union types passed - we'd reconsider the syntax for = it. I think we need to clarify the vote here. I'm personally against Union typ= es because it makes no sense for classes, and for scalars we're better off = with dedicated solution a (e.g. "numeric"); but if it does pass, I'd rathe= r have just one way of doing nullable types and not two. Zeev