Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92816 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36253 invoked from network); 26 Apr 2016 19:34:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2016 19:34:17 -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.86 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.86 mx105.easyname.com Received: from [77.244.243.86] ([77.244.243.86:52460] helo=mx207.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/1A-20013-8B2CF175 for ; Tue, 26 Apr 2016 15:34:17 -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 1av8kL-0006yx-Qp; Tue, 26 Apr 2016 19:34:10 +0000 Reply-To: internals@lists.php.net References: <571F7B91.2030102@zend.com> To: Bob Weinand , Niklas Keller Cc: Levi Morrison , internals Message-ID: <571FC2AF.8060003@fleshgrinder.com> Date: Tue, 26 Apr 2016 21:34:07 +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="2Vss6fTATGMnFa6JGP1oMA7fhUC4SC7HV" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] Patch for Union and Intersection Types From: php@fleshgrinder.com (Fleshgrinder) --2Vss6fTATGMnFa6JGP1oMA7fhUC4SC7HV Content-Type: multipart/mixed; boundary="8k50F6fus7VWAhoa5eiGL2jrOr533QoWj" From: Fleshgrinder Reply-To: internals@lists.php.net To: Bob Weinand , Niklas Keller Cc: Levi Morrison , internals Message-ID: <571FC2AF.8060003@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] Patch for Union and Intersection Types References: <571F7B91.2030102@zend.com> In-Reply-To: --8k50F6fus7VWAhoa5eiGL2jrOr533QoWj Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 4/26/2016 9:13 PM, Bob Weinand wrote: > There's undefined (=3D not a value) and there's the value null. We just= don't expose undefined to userland. [You see it when accessing undefined= variables, which PHP converts to null with a notice for example.] >=20 > Null is definitely a value. You can pass it around, reflect on it, assi= gn it etc.. > And as it is a value, it also has a type, which is null. >=20 > Null is not special, it just has specific behavior, like any other prim= itive type has. The only special thing is that it's allowed as a default = value with function (Foo $foo =3D null), but this should be somewhen depr= ecated and removed once we have proper null unions. >=20 > If you want to continue arguing, please open a new thread, but don't si= de-track this thread to much, please. >=20 > Bob >=20 Null is a type, no argument there! Deprecation of null as default value makes no sense, nor does it make sense to deprecate 42 as default value. ;) --=20 Richard "Fleshgrinder" Fussenegger --8k50F6fus7VWAhoa5eiGL2jrOr533QoWj-- --2Vss6fTATGMnFa6JGP1oMA7fhUC4SC7HV 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 iQIcBAEBCAAGBQJXH8KvAAoJEOKkKcqFPVVrh8oQAMp7NhYunmmTS/9Pi+oPXAlH O483P43dv62lCeoYk4bSXcHDIn+2hrrlw45hXeEO0An0vkdYJ8t2IN3LZoTXsY+2 srvWwba9fVop9IyoH/jb8uNMwNScsnzeVpljyb9iQLSkzu2p4a0mx5uu3RjAsqQ+ vLNkasAeFakeaBXLgQ0MuKXoyBTWDLDcYJQHq5LjG2q5bWDL7tKJzJQ197Q/ot/9 +NMRxZXs8ClCiYdxuMTn7b+jCsdOFt7FMsgfKx+RPpje8dObJleLa+Q1ccs7CZvW j+/zzAoRbc/kj97cMpcdc4n4Zt4G4zxIV/LOLfutX2yWfk4cpp862HkkT0ERnooU 4GueGCxCZNHozrraAxGxmAotRMy/bdqbRyhqGo/IUFjSJ7IDGC5AFEBccxBGEmBX bEF7tGkP+ceOHrbAdIZVpndrZC9zOYJspfEH57AU0pIquZVY9QP9mgTDcrDhO2kG 1aH9aNJ+kHhEh8T41dWPUPifqfhDe3EoiSZgk1xuznCYmSDK7Vwygq2LH00/iXR9 007SJHwTIqIYsxZ/xzIuHuLoDdbRnHCw9gaTw0n5OIYHnZjg9zS4hU40htGSWDgx tOcARbKBhflwsipyc/4fEwUrnXocrJUrz8LvkbpZ1b9eWEqXaJxsaqOe0oNBVvI2 qld2TRY5BnpHVFTC6eNU =53EA -----END PGP SIGNATURE----- --2Vss6fTATGMnFa6JGP1oMA7fhUC4SC7HV--