Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95895 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51715 invoked from network); 10 Sep 2016 10:55:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2016 10:55:20 -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 77.244.243.87 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.87 mx106.easyname.com Received: from [77.244.243.87] ([77.244.243.87:53889] helo=mx201.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/10-46544-596E3D75 for ; Sat, 10 Sep 2016 06:55:19 -0400 Received: from cable-81-173-132-21.netcologne.de ([81.173.132.21] 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 1bifwH-0007uX-KC; Sat, 10 Sep 2016 10:55:13 +0000 Reply-To: internals@lists.php.net References: <642a6e78-90ea-cbf0-ec1c-376c24e568c5@fleshgrinder.com> <0800a5ca-3d14-c541-1a1a-2574ec802b8c@fleshgrinder.com> <83fa661e-2d3d-6548-a506-fb969be31c0e@garfieldtech.com> <56acc1d9-f424-a460-59be-3a9a1a74b198@fleshgrinder.com> To: internals@lists.php.net, Larry Garfield Message-ID: <95832b08-ee80-18c1-a3da-202eed51903e@fleshgrinder.com> Date: Sat, 10 Sep 2016 12:55:01 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uU0ilsMrKTOwRCdf29LsNJw9x9bqVuF5r" Subject: Re: [PHP-DEV] RFC - Immutable classes From: php@fleshgrinder.com (Fleshgrinder) --uU0ilsMrKTOwRCdf29LsNJw9x9bqVuF5r Content-Type: multipart/mixed; boundary="HOERDjn9IhBlunnQHkjVnDf9WD44tic44"; protected-headers="v1" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net, Larry Garfield Message-ID: <95832b08-ee80-18c1-a3da-202eed51903e@fleshgrinder.com> Subject: Re: [PHP-DEV] RFC - Immutable classes References: <642a6e78-90ea-cbf0-ec1c-376c24e568c5@fleshgrinder.com> <0800a5ca-3d14-c541-1a1a-2574ec802b8c@fleshgrinder.com> <83fa661e-2d3d-6548-a506-fb969be31c0e@garfieldtech.com> <56acc1d9-f424-a460-59be-3a9a1a74b198@fleshgrinder.com> In-Reply-To: --HOERDjn9IhBlunnQHkjVnDf9WD44tic44 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable So? Where are we now? CoW is definitely doable and I personally think that it's the best approach because the engine has full control that nothing goes south. I also do not think that it's magic in any way since developers have to add the _immutable_ keyword explicitly to the class. That this modifier modifies the behavior should be obvious, _abstract_ and _interface_ also do that. Since I mention _interface_. I've been thinking about it and I would prefer it if the _immutable_ modifier also works for interfaces. Interfaces are pure abstract classes after all and they are meant to define a contract for implementors. I cannot see any good reason why it should not be allowed to force implementors of an interface to be immutable; same as with abstract classes. Another aspect that we should discuss is how immutable properties should behave in case we decide for CoW. @Larry what do you think about the CoW proposal? --=20 Richard "Fleshgrinder" Fussenegger --HOERDjn9IhBlunnQHkjVnDf9WD44tic44-- --uU0ilsMrKTOwRCdf29LsNJw9x9bqVuF5r 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 iQIcBAEBCAAGBQJX0+aNAAoJEOKkKcqFPVVrxdIQAKWJ8A5g82xu0zWf2sFRG2Bv 8aujEk1MxkvPx0hH61U5KI/JzysuvfbVm6Qi8CLaHwzAQWGzuF9NhN0WsskMxJbN 1M3iiTuGzA7hFKOQlAwe6Dqrvc1tE+EyVf8A3CxQ3F18T81BLIoSZJeag9zbjV04 HREbxEJfo81mlY1xTIEsYS6fXM2ye+WfJl/Epk/FTrfbksXqvjwFkjPzULFmaM9D DmyIZDdBK0M72EPztEwICgray+uganOnCF30CHHDW3dnv/Y+6E+kLqCrz31UQEUk OjJrRGmzcW9wnvGiaMiBLr+H8S9kRmc+KjMp5ydResmpwkaIrQZC8PbfE60FtRuE ucm7XSFonebVLbV7jJJdffgfwz8Xw9w8Ja65z7BN9gkm2QJZc9uCNruDEnFg+W84 rbFLXKUAvk98Ocq3d0y4lI2a6m5MfZYA9V7ITVNbvdS6eNNEFQGXeLg5qjwQq7hL HVy8ipZ8zT2Y+sA42cYpvoQcn8XNySm5SyovO6gYdSY01+XZDwMFGNoH+ysH+eKW a+U+lOiCPC4KK1Mlx5LMYz/1QCpCN+4J2hGseRlt021bifjy8QGDEsVm1eCbW++m pW3DiE+sm+dM3mROvz1lKx+Ib5l4MIt8plI/D0Ts9sN93MnbL2oT9+patp68sewX BH+hFpBe1hDwRFcSZvu0 =pCBQ -----END PGP SIGNATURE----- --uU0ilsMrKTOwRCdf29LsNJw9x9bqVuF5r--