Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15229 invoked from network); 3 Jun 2016 17:57:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2016 17:57:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 212.232.28.122 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.28.122 mx201.easyname.com Received: from [212.232.28.122] ([212.232.28.122:39568] helo=mx203.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/94-22497-7F4C1575 for ; Fri, 03 Jun 2016 13:57:13 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] 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 1b8tLI-0003oT-4V; Fri, 03 Jun 2016 17:57:08 +0000 Reply-To: internals@lists.php.net References: To: Theodore Brown , Bob Weinand , internals Message-ID: <3e71c76f-c08e-2937-2e01-af0769798841@fleshgrinder.com> Date: Fri, 3 Jun 2016 19:56:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d39dh5Uj2KwARPnlobJoCKuKRXVSmu3bv" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] [PRE-VOTE] Union types From: php@fleshgrinder.com (Fleshgrinder) --d39dh5Uj2KwARPnlobJoCKuKRXVSmu3bv Content-Type: multipart/mixed; boundary="BiwqG8teIfdvRHIJxvUNrcnK3qCOjuOQH" From: Fleshgrinder Reply-To: internals@lists.php.net To: Theodore Brown , Bob Weinand , internals Message-ID: <3e71c76f-c08e-2937-2e01-af0769798841@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] [PRE-VOTE] Union types References: In-Reply-To: --BiwqG8teIfdvRHIJxvUNrcnK3qCOjuOQH Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 6/3/2016 3:40 PM, Theodore Brown wrote: > I am also in favor of the proposal to replace ?QuestionMarkNullables > with union|null. Having a single way to declare nullable types will > keep the reflection API simpler, make things easier for static > analysis tools, and prevent developers from having to wonder which > syntax they should use for a given function. This would be a big win > for language consistency, and this is probably our only chance to > make the change without breaking BC. =20 >=20 I am actually only in favor of disallowing ?T1|T2 in favor of T1|T2|null but not ?T because it's shorter and I do not see a problem with that. --=20 Richard "Fleshgrinder" Fussenegger --BiwqG8teIfdvRHIJxvUNrcnK3qCOjuOQH-- --d39dh5Uj2KwARPnlobJoCKuKRXVSmu3bv 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 iQIcBAEBCAAGBQJXUcTlAAoJEOKkKcqFPVVrQVEP/3+PG6WuBnEuAT3YveNHwjNU f1u4+3Euu1h0RjPoj/HvT/3RS4Yu1OJ8LJC+RMSy4MPX2qlhWlYgLLOkkqGcpfwV zsjYM/L3W5aqdO6op3xlYvnTYYqfNV40UuWf1I19MVZ9pY3uVwJ90Igdy7Y1PY9K NC4DfWZFfcCqekmcWU3oBdaubVXzq5ctFujK+L3naLft1GvwGgi4uh7wl6+lL5/8 F1N4m7eSytG8yB9KORgRnn9jNpsLVd4OIJD7gIf4In2QfPsy4bDg1M5JxEHdGX/X VDj6F1JCcp0JystUqnziVkMeELxXFAt6vyoOC7XcoINSZDWcW6EtpmBWHhpxpa5T 5eLWvzLrpeMH1kPczBoL1z/06lYVAhq2W2L/mbpHUmgrNf9O4PhImqbaxuMtQUPn s0r3Hw+r0KDgHhjKTbVmNfeZwWgKhhTkq5n5m5797BmqSL/A9c87V6wO23Xg7Y7p 1nLvQBqHMZKZSKJUEg4KDU9IQuqy63H3kSG0z73btDaRmt3hR7xbjnKPGrSGJdPr tsER4W2kNgEEz4Jke0GPr6dN72brTXAoroILuW91FESduw9BnoBykqt7RJoENVIZ CT+coGxhV4K35bfxreyLdmO2SBogaPnsOv038FWGTN+8TOX0ni2X9hhMIQTGYXp6 TyMl2lc/El12ezCRWYhu =gPrh -----END PGP SIGNATURE----- --d39dh5Uj2KwARPnlobJoCKuKRXVSmu3bv--