Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23593 invoked from network); 19 Mar 2016 12:32:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2016 12:32:13 -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 212.232.28.123 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.28.123 mx202.easyname.com Received: from [212.232.28.123] ([212.232.28.123:32937] helo=mx202.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/48-03097-BC64DE65 for ; Sat, 19 Mar 2016 07:32:13 -0500 Received: from cable-81-173-135-2.netcologne.de ([81.173.135.2] 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 1ahG36-0001Mi-Tp for internals@lists.php.net; Sat, 19 Mar 2016 12:32:09 +0000 Reply-To: internals@lists.php.net References: <56EC69EF.1090003@fleshgrinder.com> <56ECCFCB.6090105@garfieldtech.com> <56ED28BD.4040900@fleshgrinder.com> <56ED2FCB.6030609@lsces.co.uk> <56ED31BD.50307@fleshgrinder.com> <56ED36A6.4090201@lsces.co.uk> <56ED4363.8030908@fleshgrinder.com> <56ED460F.7060507@lsces.co.uk> To: internals@lists.php.net Message-ID: <56ED46B7.2070409@fleshgrinder.com> Date: Sat, 19 Mar 2016 13:31:51 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <56ED460F.7060507@lsces.co.uk> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4tNgKEKhwKvJMOLIr57nAAvxk9IOA2hoI" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: php@fleshgrinder.com (Fleshgrinder) --4tNgKEKhwKvJMOLIr57nAAvxk9IOA2hoI Content-Type: multipart/mixed; boundary="iGh82Em8fVOVUmPRcMqgpnU6H3I7jAcnc" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net Message-ID: <56ED46B7.2070409@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties References: <56EC69EF.1090003@fleshgrinder.com> <56ECCFCB.6090105@garfieldtech.com> <56ED28BD.4040900@fleshgrinder.com> <56ED2FCB.6030609@lsces.co.uk> <56ED31BD.50307@fleshgrinder.com> <56ED36A6.4090201@lsces.co.uk> <56ED4363.8030908@fleshgrinder.com> <56ED460F.7060507@lsces.co.uk> In-Reply-To: <56ED460F.7060507@lsces.co.uk> --iGh82Em8fVOVUmPRcMqgpnU6H3I7jAcnc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3/19/2016 1:29 PM, Lester Caine wrote: > On 19/03/16 12:17, Fleshgrinder wrote: >> You are mixing to things like I did. If you never unset and never assi= gn >> then the value of the property is *null* or as I defined to avoid >> confusion *void*. All fine. The question was, should this result in an= >> error and the general consensus here is /no/. >=20 > My point is that $object->property =3D null; after the object has been > 'constructed' is still a valid assignment ... the object's content may > well be changed by changing the loaded object id. >=20 I am not so sure about that and one could always reside to not using type hints in such situations. Additionally I do not think that one should change the /loaded object id/ better create a completely new instance. But I might be missing more context here. --=20 Richard "Fleshgrinder" Fussenegger --iGh82Em8fVOVUmPRcMqgpnU6H3I7jAcnc-- --4tNgKEKhwKvJMOLIr57nAAvxk9IOA2hoI 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 iQIcBAEBCAAGBQJW7Ua4AAoJEOKkKcqFPVVrSz4P/1vzZecO/r26QAtKqgDlI2Gf uvcwdCA8xmWFCK+82y3AFXGLUk81E3K61mu06vwzvqq5UUoCFxiVPeBFyaP5G/Dy xkJhwJtYKBEF8Xuq8fGtXOtXx5WsbyC1sKU75hOtQFkeKvn9BsNGnnGdHwOV0JYm aBJ6agKcRvqUKNTJUxakpqvFUQNp3D6rWW08D6NtnPIlDqXxaqHdxexZvMLRXQBV sMUTVN2ZW/1UruIZc8lD2z3oxNuHCAKbwAIeukxjpvo6bUq5OKxDoemliLNi+NUI vCJw5tv9J66Sz9280Ng5Tl6qZtlBDfA6m0OC+hJGcEyMj11YB2CXCoZ9aHo6B4Vb KF+RNEbLp5GWsLBMYeUNA1IHWSF3KLc9QyeF5TMvwQOS4AeGEcPZ+750F2gUN5Kn ZZJQmOQsVajSGJ3q1//2DUs9BsMGK/mgeklBntYbaKcXGF3uw/sQYXwIVdKbabcH sXBT7cP3aRtlHyN89rv0SIDaZUqzIBWkgn/Us9y6fHh5mBawYm3TkW1EJW5smI3t l5XN12CdY2d61w8kZDXJnvIvzabw4v3dih6fyXlHiVFYFzcky3DQN8WkNt08oylV hnZx1gCzvyNPfDzNeX6qx5Z68G1ysTkL4c+ll8HMXscmAyWUUAdaGntjiFWE0g4T DLMbjyEWX1PF8GLI8vMY =HDrO -----END PGP SIGNATURE----- --4tNgKEKhwKvJMOLIr57nAAvxk9IOA2hoI--