Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107627 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62312 invoked from network); 22 Oct 2019 14:52:40 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 22 Oct 2019 14:52:40 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 63D712CFDBF for ; Tue, 22 Oct 2019 05:38:33 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS14061 192.241.160.0/19 X-Spam-Virus: No Received: from outbound.cloudiway.bcisoft.eu (outbound.cloudiway.bcisoft.eu [192.241.166.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Tue, 22 Oct 2019 05:38:32 -0700 (PDT) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02lp2051.outbound.protection.outlook.com [104.47.38.51]) by outbound.cloudiway.bcisoft.eu (Postfix) with ESMTPS id 7C25F61D80; Tue, 22 Oct 2019 08:43:56 -0400 (EDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Csupni/zy1iAQchiOg74wpyh4RUSBnEmqzoMwilZ9OEtQukffxWZSbIXz1DvPKKpEFMEF2hc2W0rM27kiI2pVDFDhbDXoYFXWtSyubIue2xe+hfM5YitTYb3fPN7Kq2Na4Rz8k0rysISH3FBanhn/ulekss3OiPZd8g71WlmvLrT1XoydneVq7wiGmblw3BaGcPVPz0x5vZ+RJp2L78II4UvQKoDJD9vSNb5kgpcNuo7zSc3LKr4R9BAbZQbDLmHtkIkRp9+cLFGm2RmjANMwmSe36QsEtgBGMH7KZpdigiH3Ii4/e0DDqvpAvgmqgWiKENTISTFQNiGU8U73zzroA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kN+7fB69Wyau53moBpfBTIy1W5C8xGKJN7Ro1Mb/XzM=; b=lDyYchKWAPnbOudd+HY/vXNJIrsTqGkNMWBVFnPnMDcDr60uV2ldV8UdLLnJKnClhDqSjdJPEJt3glhCyO/N+XzQuF0T4LKhEqp7Ajr7tmt84P6pw8MOPZsqJirwAhYZ+5TQb96PoxwXOuFHW/rwXPyyNro1ICyDdEij8piAzZolBDO4PsM1ucRCDIo8psFBAsrxjwokGOd7y8FsjnTsF2iHLnuPfTdFCa289QPB1FYV68w9id7+pr5kpocaY4pXK+X9Np/grvN/he5K7UQRCdXxSAIr0nxKuf6BzgSKkG4I5usPsOST5h9UK/uXBKFmZcYr+pd91se3cL5Nkq57pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=zend.com; dmarc=pass action=none header.from=zend.com; dkim=pass header.d=zend.com; arc=none Received: from MN2PR02MB5775.namprd02.prod.outlook.com (20.179.98.90) by MN2PR02MB5808.namprd02.prod.outlook.com (20.179.98.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.24; Tue, 22 Oct 2019 12:38:30 +0000 Received: from MN2PR02MB5775.namprd02.prod.outlook.com ([fe80::d585:d4b8:a154:83ca]) by MN2PR02MB5775.namprd02.prod.outlook.com ([fe80::d585:d4b8:a154:83ca%6]) with mapi id 15.20.2347.029; Tue, 22 Oct 2019 12:38:30 +0000 To: Nikita Popov , PHP internals Thread-Topic: [PHP-DEV] Re: [RFC] Union Types v2 Thread-Index: AQHViLwyaEvmMSOYQkSvsPkH2vQSl6dmmFE8 Date: Tue, 22 Oct 2019 12:38:30 +0000 Message-ID: References: , In-Reply-To: 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=dmitry@zend.com; x-originating-ip: [212.232.72.197] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 573da710-56b7-49b8-9a73-08d756ecbe90 x-ms-traffictypediagnostic: MN2PR02MB5808: x-ms-exchange-purlcount: 4 x-microsoft-antispam-prvs: cloudiway500: noi$yRiver10 x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 01986AE76B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(376002)(346002)(396003)(39850400004)(189003)(199004)(446003)(476003)(186003)(486006)(71200400001)(11346002)(6116002)(110136005)(71190400001)(26005)(316002)(105004)(3846002)(2906002)(33656002)(19627405001)(66066001)(5660300002)(52536014)(54896002)(6306002)(561944003)(55016002)(236005)(6436002)(9686003)(6246003)(66446008)(64756008)(66556008)(81156014)(81166006)(91956017)(8676002)(7736002)(8936002)(66946007)(229853002)(76116006)(66476007)(74316002)(53546011)(25786009)(6506007)(478600001)(102836004)(5024004)(256004)(7696005)(99286004)(86362001)(606006)(966005)(14454004)(14444005)(76176011);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR02MB5808;H:MN2PR02MB5775.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dQsHDwttFALuut6h67dl7Bi8KVzjoE0nlGQG/WiwtzZd3xYhoSLhszQvJHS2ac9CygWSeyPlQNZsWDn9ekwmZ0YZC3zULOMmrZpcY1RnxK4lpvbUp57gC3DNvX4Uw/vOEuQDnPnoZQLHAIP8HxnYOjt+PI0TDa1fNRfcgFIKViYtuZWov6tzOBH0J19939Qp6ugbp2AtjKY0Lq/LPB51wCh1FtQhtzL8YlXcZ9MW3HMWpuzTXW9RlYZFGJSVxy0sak8f1SdbaSiOOt2qxWFse/kftyLX58hOzHKj2b1I69Uec1P9bmIgdLDHYJBEph7rQ+CI3XVtsFQAbhIHtv3DhuJ3Zti4nuijcxwdMdRRW8xzt478RncgFnbzBmAZYEwK+tUd8cRFo1HS2ktnJI6DQLl/+aYH9xPJSQz5toRKQmGryQk63la9PSJJ66vdhmDihBPX4nQ4Uz8AxiM5w6BJIWb4MPKNLc5nvGp27m154BA= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_MN2PR02MB5775DDEA6332048DB9C9E52EBF680MN2PR02MB5775namp_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-Network-Message-Id: 573da710-56b7-49b8-9a73-08d756ecbe90 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2019 12:38:30.3753 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zhH5TaJnAEvVbobnRoHaGwO7aMuxROswqyAOA00W+O3WLcxjyfS+BCUC1xw4Zyoqmt9Wra1TRJdEUQVcl9G/DFEEHIEnQqp2vAOlSOBnAWQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB5808 X-Envelope-From: Subject: Re: [PHP-DEV] Re: [RFC] Union Types v2 From: dmitry@zend.com (Dmitry Stogov) --_000_MN2PR02MB5775DDEA6332048DB9C9E52EBF680MN2PR02MB5775namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Nikita, Can you please give me one/two days, before starting the voting, for implem= entation review (at least until October 25), Thanks. Dmitry. ________________________________ From: Nikita Popov Sent: Tuesday, October 22, 2019 12:36 To: PHP internals Subject: [PHP-DEV] Re: [RFC] Union Types v2 On Wed, Sep 4, 2019 at 10:26 AM Nikita Popov wrote: > Hi internals, > > I'd like to start the discussion on union types again, with a new proposa= l: > > Pull Request: https://github.com/php/php-rfcs/pull/1 > Rendered Proposal: > https://github.com/nikic/php-rfcs/blob/union-types/rfcs/0000-union-types-= v2.md > > As an experiment, I'm submitting this RFC as a GitHub pull request, to > evaluate whether this might be a better medium for RFC proposals in the > future. It would be great if we could keep the discussion to the GitHub > pull request for the purpose of this experiment (keep in mind that you ca= n > also create comments on specific lines in the proposal, not just the > overall discussion thread!) Of course, you can also reply to this mail > instead. The final vote will be held in the wiki as usual. > > Relatively to the previous proposal by Bob&Levi ( > https://wiki.php.net/rfc/union_types), I think the main differences in > this proposal are: > * Updated to specify interaction with new language features, like full > variance and property types. > * Updated for the use of the ?Type syntax rather than the Type|null > syntax. > * Only supports "false" as a pseudo-type, not "true". > * Slightly simplified semantics for the coercive typing mode. > > Regards, > Nikita > An implementation of this proposal is now available at https://github.com/php/php-src/pull/4838. As the implementation didn't turn up any new issues, I think it's time to move this RFC forward to voting. Nikita CAUTION: This email originated from outside of the organization. Do not cli= ck on links or open attachments unless you recognize the sender and know th= e content is safe. --_000_MN2PR02MB5775DDEA6332048DB9C9E52EBF680MN2PR02MB5775namp_--