Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91771 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13224 invoked from network); 19 Mar 2016 11:02:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2016 11:02:48 -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.125 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.28.125 mx204.easyname.com Received: from [212.232.28.125] ([212.232.28.125:40933] helo=mx204.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/76-03097-5D13DE65 for ; Sat, 19 Mar 2016 06:02:47 -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 1ahEeZ-0007pl-8X for internals@lists.php.net; Sat, 19 Mar 2016 11:02:43 +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> To: internals@lists.php.net Message-ID: <56ED31BD.50307@fleshgrinder.com> Date: Sat, 19 Mar 2016 12:02:21 +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: <56ED2FCB.6030609@lsces.co.uk> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0LcpGSlavX5HdE1dM8sxdSLkuVWnn1E6x" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: php@fleshgrinder.com (Fleshgrinder) --0LcpGSlavX5HdE1dM8sxdSLkuVWnn1E6x Content-Type: multipart/mixed; boundary="xkF7WId0LwTuEOQxshkVqtJU9aensk5d8" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net Message-ID: <56ED31BD.50307@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> In-Reply-To: <56ED2FCB.6030609@lsces.co.uk> --xkF7WId0LwTuEOQxshkVqtJU9aensk5d8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3/19/2016 11:54 AM, Lester Caine wrote: > On 19/03/16 10:23, Fleshgrinder wrote: >> Properties need the ability to be void even after construction and it = is >> up to the object to keep track and ensure state. Nullability is imho n= ot >> necessary at all. So we are all in line here. >=20 > If the record I am working with identifies elements are incorrectly > matched, then making a value 'void' is the correct action. We would jus= t > NULL that identifier and fire off a delete to the linked record in the > database. Otherwise we have to create additional logic to handle that. >=20 And *void* would translate to *unset($record->property)* and not to *$record->property =3D null*. This works with the current implementation and any *isset($record->property)* works too. As you can see, nullability was not required. :) --=20 Richard "Fleshgrinder" Fussenegger --xkF7WId0LwTuEOQxshkVqtJU9aensk5d8-- --0LcpGSlavX5HdE1dM8sxdSLkuVWnn1E6x 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 iQIcBAEBCAAGBQJW7THCAAoJEOKkKcqFPVVr730P/12S78VVFWPZDkRy/yDAGFiY mXrVaFGHoCWJc3+RTpWnFg0+7cYTQKvweSnhZGCl3SIwE8QrUiy3jEqFTcpk06SF wgHRvTTjUJkn5x81ecORDPebYIAwISlffMOBtV5cwN0uQdARKhntDdASuMXihgwb mqoBcOQOm+6qbUOlfjkm7YwNNQTTqxCwknUyvYQa+yq22ibhO5t9k0pPId7k85I7 RW9YdVruVp/9G5irtImrFzyTeCQ4akwBh+C+Z+r3NGTd/JtltIxKoADVip7A9tJ/ NP+6aX/E8QeRTSI+D6dyYz9QUAc5qC020IG/EEqLyD+fO+eob55mTWAwa7jIE23S Dk2kQyJyN1+CsZtyiA30ca3pv6nLYgv1vu5ALu8R38dh6K/PJdgCZjcAMHW2tQVh QJZgOzsqAoI7g5Ps2r5ReHDIotzfz8hLSSpsQGPqWM0cW9koO7ehVaA0r42qhP4J owJxOYmY5F27nSNiZEPxUEQ5MY1FrtrYVJ/swJ/kRpdbD2kjqp9QAsmWI8qXo9lX Wcud4Gt9u6cjocQd4VS82jF9EUgkNRshTNG3Bnc4v4WKvTwk7t0hUVlwMaWqOw4d zNHnm3IR0q+R+TIHkrnggqVgDun7sEbQHMpDhjGDSMVbtCP/pHopcWUBsogS5MGD kau8oyJ/MduXzfp/A/7K =Ag3K -----END PGP SIGNATURE----- --0LcpGSlavX5HdE1dM8sxdSLkuVWnn1E6x--