Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26240 invoked from network); 13 Apr 2016 19:10:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2016 19:10:58 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.82 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.82 mx101.easyname.com Received: from [77.244.243.82] ([77.244.243.82:36773] helo=mx205.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/95-26321-EB99E075 for ; Wed, 13 Apr 2016 15:10:55 -0400 Received: from cable-81-173-133-226.netcologne.de ([81.173.133.226] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aqQBf-0001fM-Dv; Wed, 13 Apr 2016 19:10:51 +0000 Reply-To: internals@lists.php.net References: To: Levi Morrison , internals Message-ID: <570E99AC.3090804@fleshgrinder.com> Date: Wed, 13 Apr 2016 21:10:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jgfFPv5FgRSxD64jkLLj6wQETweHGARp4" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: php@fleshgrinder.com (Fleshgrinder) --jgfFPv5FgRSxD64jkLLj6wQETweHGARp4 Content-Type: multipart/mixed; boundary="r0i8Pv06rAMRoBKL9NK3CU8AFqRcV0kk2" From: Fleshgrinder Reply-To: internals@lists.php.net To: Levi Morrison , internals Message-ID: <570E99AC.3090804@fleshgrinder.com> Subject: Re: [PHP-DEV] Re: Improving PHP's type system References: In-Reply-To: --r0i8Pv06rAMRoBKL9NK3CU8AFqRcV0kk2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nothing to add other than +1, however, didn't you already write those? https://wiki.php.net/rfc/nullable_types https://wiki.php.net/rfc/union_types Or is this just an announcement that these will be finalized now? Btw. I am in favor of having the question mark as a suffix and not as a prefix because it is more readable and more natural to type. function fn(string? $str): bool?; Declare a function with the name fn that takes a string argument that is nullable which will return a bool or null. That is exactly how I would think about the above while writing and reading. :) --=20 Richard "Fleshgrinder" Fussenegger --r0i8Pv06rAMRoBKL9NK3CU8AFqRcV0kk2-- --jgfFPv5FgRSxD64jkLLj6wQETweHGARp4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXDpmwAAoJEOKkKcqFPVVrE8YP/0xdl69x9nByR7nnWj+gSpoB FLsztZmEciAEii2+HOqblE1Hk67na8sbf983Cqx2xqMQDGpbdrrLzFVA/6XArlQZ M+kUuXYlzJ0fUVlR55S9QiLn/jehTQLfdY+9LMCaQi3tBZ6N/1lBGkZyidbI1x4T OpoYFWakR3GqGuCspoYxtlAwTYH/dQq9gmcn1Zcu2U4fz2SMf8wtUE25zLKVBW86 /3HXQnD5NaMN1CYtdVi2zvPGgYocXZnK3zjnJeo9oRx6Ri9YNmXVF59HHUMNTujN kghnnyxcdGbzvuAtShzZcEBTYyeW97Gu4mbu1Gg2OWZYTULNkjwjLpTqxlFx7RTD wo7QNi+GdYuFtwisp4LhiNUcbIv8ENLir9n1JyN/M6eWtrRfLitsWKlYReFt21oH n0aGXxbaDEjVRvBymX5x3Kti1Lboce1qo6M+FXr3ODBGyaa2FT886WOOOTlo4FeU gHy7N793uETneit9tZpIeIaaEIDTRGBDZQ0UQDZXk24I703Ga7tQXDB5jvj4R+bO xFx4TITCdEaG+V3Q0JZpllCBC7YGhYvAM/q42G/GliQuVYEn1i0GeoCRiXHMzScP bA3JONCUcufggf2Fb5loRvsWw/HQSN4TSPGIqXXReAvaEha3epVvqkBUMTB5e+YF YLHbluGYJOeFsRACjFnF =OyG3 -----END PGP SIGNATURE----- --jgfFPv5FgRSxD64jkLLj6wQETweHGARp4--