Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92308 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60740 invoked from network); 14 Apr 2016 17:41:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2016 17:41:50 -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:41501] helo=mx205.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/01-53665-C56DF075 for ; Thu, 14 Apr 2016 13:41:48 -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 1aqlGz-0001Dq-8z for internals@lists.php.net; Thu, 14 Apr 2016 17:41:45 +0000 Reply-To: internals@lists.php.net References: <570F6C70.7090009@mprelu.de> To: internals@lists.php.net Message-ID: <570FD649.3060504@fleshgrinder.com> Date: Thu, 14 Apr 2016 19:41:29 +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: <570F6C70.7090009@mprelu.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3VQ3WlHCEpuqUXhlLU8LCQv7wfbQj8wWT" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] Nullable Types From: php@fleshgrinder.com (Fleshgrinder) --3VQ3WlHCEpuqUXhlLU8LCQv7wfbQj8wWT Content-Type: multipart/mixed; boundary="PoIoxuVrqwPwuvXaCSgKtSswcjUwP4xCq" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net Message-ID: <570FD649.3060504@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] Nullable Types References: <570F6C70.7090009@mprelu.de> In-Reply-To: <570F6C70.7090009@mprelu.de> --PoIoxuVrqwPwuvXaCSgKtSswcjUwP4xCq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 4/14/2016 5:42 AM, Levi Morrison wrote: > As alluded to in an earlier email today[1] I am now moving the > Nullable Types RFC[2] to the discussion phase. In a nutshell this RFC > proposes syntax for declaring a type to alternatively be null. > > There is a decision that needs to be made: does the question mark go > before or after the type name? > > function (?Foo $foo); > function (Foo? $foo); > > There are precedents in several languages for each position. Some > relevant issues to where the question mark goes are noted in the > RFC[3]. > > I look forward to a helpful and meaningful discussion! > > [1]: http://news.php.net/php.internals/92252 > [2]: https://wiki.php.net/rfc/nullable_types > [3]: https://wiki.php.net/rfc/nullable_types#position_of > I have to agree with the question mark in front after reading the possible problems with the question mark as a suffix, the fact that HHVM already puts it in front, and the argument to read it as "nullable type" instead of "type or null". :) +1 --=20 Richard "Fleshgrinder" Fussenegger --PoIoxuVrqwPwuvXaCSgKtSswcjUwP4xCq-- --3VQ3WlHCEpuqUXhlLU8LCQv7wfbQj8wWT 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 iQIcBAEBCAAGBQJXD9ZNAAoJEOKkKcqFPVVrmUcQAJm+3FMG+sZ83B5nfdahgSuH XDs92viv/NXyw+suBmxt3ydXZ8BMOr7JFdzYI8eQGSErANiUBqxP3VSjtCXysL7f W7V/oMdjReAU2bsILy81PsRUs6YJogadV0jKuFq7LZKgSwr5IjisV4oKh1JBbaQ4 GvuP9ggaXb7276JE6DaVnEBnp3pioSuu9+2BeEvppQkeogCtRUw5WQR/r5dpkqcy 2w42n7K8y7OetjcFWWR73lvs57d3iag+e5d+J14ccqCuLG5wYI8Xm2961S3L+LOG 2INCGieP+yhHVGsy83RHrT/YyrrqE16QP+R9qkNT2TBdUiDN02Ioiot6k/TVtVFn TJhCbP3W0Jbud4Z1OyANSKNI7DelD5FNaLVrYb0QxVOJ139bmLYYOu6GbhU0fO2T QD6zR3176icB2qja8CVIEUbdV/DipCJdiRLvv36DQo1DoOgSUYWhmWycxLH82Uhw ROwPQ7BtlnVDAEvvvqq+zQEZ6vxV02VPMMikGmupWVYPARAXk9Q/li6NjyzB36ij 8Zx6pnd0NHrnG0HWbO2wPptJlJe0XvUnkafH+2vdMcZTze/ZdjQsgd+u9zw47+NP pCjB3p1yqrh4ilFwWgvhHN72ytDMlunSfZrJPczeVlUSb5S6UAQmDOo5ZZvmee7+ AemyAY5YDtHfxFtFHQmz =WCqv -----END PGP SIGNATURE----- --3VQ3WlHCEpuqUXhlLU8LCQv7wfbQj8wWT--