Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91462 invoked from network); 18 Apr 2016 08:59:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2016 08:59:29 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 157.56.111.131 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 157.56.111.131 mail-bn1bon0131.outbound.protection.outlook.com Received: from [157.56.111.131] ([157.56.111.131:56224] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/42-11975-EE1A4175 for ; Mon, 18 Apr 2016 04:59:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nqxltdBk8uqTZAsCmI53a+QR+U2Sp3dH1V3sMnU7QVU=; b=332fvj5O63SvSplJaamdWElEsjfzbAa3QlR1G2t3CeAFfp7aLIzb0O7/cqBSMzg1T/+mPFiMTsn01OgH2anrjefzQYzyBOL3y7LIKoYjilRWh1PlnZYU3xNpMzltEC92vwkrrBr3NdG0pT8BOtN/uLPZUbLHaI31iMksD8k69Go= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1782.namprd02.prod.outlook.com (10.163.72.24) with Microsoft SMTP Server (TLS) id 15.1.466.19; Mon, 18 Apr 2016 08:59:22 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0466.022; Mon, 18 Apr 2016 08:59:22 +0000 To: Tom Worster , internals Thread-Topic: [PHP-DEV] [RFC] Nullable Types Thread-Index: AQHRlf/HRrhz9JlaLkGvYOd79l/iMp+JStcAgAH+hYCAAAhNm4AAiDUAgAOa/k0= Date: Mon, 18 Apr 2016 08:59:22 +0000 Message-ID: References: <570F4BB4.6020709@zend.com> <57112225.6020905@thefsb.org> ,<57119B5E.6070205@thefsb.org> In-Reply-To: <57119B5E.6070205@thefsb.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: thefsb.org; dkim=none (message not signed) header.d=none;thefsb.org; dmarc=none action=none header.from=zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: c4a3b73a-8130-4d0c-cc91-08d36767bc0a x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1782;5:0JAizKWDNyl4YCfWxLUZ9osYR7oxiKL8aY8ZRWBCbGwVrQqx0Qf7jEQ58IEvRP4jwXeO9KDxJfnLE0EgJEFiLEN+EXvIS9BpPMYqCFravW4tydPbAHlV8TIpuFXum8YGZhrP2kRLt/Q2YvA3bBrdXxsHKL66mFCNm6MAYzAGq6Do33bfXju5qLcVtEKZy68d;24:nytGgNUsrQfva51shaz9mdrYP+p2FFnZx/foPLk7jTUhfiF3a8necGqLvVuwW0SsxiWqZ0+7bV9haWXYxmaT7EjjDdpyfkZnUdTrsJJf1LM=;7:aIR5YylYcohpPlekRCbD3+PoH14auhsjt+WVCOW/crnKX+fjATxj0n8gSX4ZNPNcbcETrS/HxbU0mNVG+PbHeqmU2CgCUYPubK1TrVpD8e98egDd3AZfLA/dkZXzCzUfMcF4hwNcV1Zkf6UxAitlEq6vBzBtZ7JfGtCxvYeoc+fvYK0owhBOs88Y+/zXvc4nb44+1bCiOvNS0BAjWprw9pbp+vrCIsE70qM23WI2mhI= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1782; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY2PR0201MB1782;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1782; x-forefront-prvs: 0916FC3A18 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377454003)(2906002)(586003)(3846002)(102836003)(122556002)(6116002)(19580405001)(11100500001)(19580395003)(5004730100002)(189998001)(107886002)(5001770100001)(77096005)(2950100001)(15975445007)(1096002)(76576001)(3280700002)(1220700001)(5008740100001)(99286002)(106116001)(92566002)(3660700001)(3900700001)(9686002)(81166005)(86362001)(5002640100001)(54356999)(76176999)(93886004)(33656002)(50986999)(74316001)(87936001)(10400500002)(5003600100002)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1782;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2016 08:59:22.1144 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1782 Subject: Re: [PHP-DEV] [RFC] Nullable Types From: dmitry@zend.com (Dmitry Stogov) The grammar is taken from HHVM. Using any other would make more mess. Thanks. Dmitry. ________________________________________ From: Tom Worster Sent: Saturday, April 16, 2016 04:54 To: Dmitry Stogov; internals Subject: Re: [PHP-DEV] [RFC] Nullable Types On 4/15/16 1:58 PM, Dmitry Stogov wrote: > A week ago, I actually wrote my own RFC https://wiki.php.net/rfc/nullable= _return_types You proposed the ?Something grammar. With ?: and ?? appearing in recent PHP and proposals for ??=3D if not ?:=3D and now this, I feel we're heading to regex hell :p Tom > but didn't push it for discussion in favor of Levi's nullable_type RFC (= they are almost the same).