Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91769 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8695 invoked from network); 19 Mar 2016 10:49:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2016 10:49:18 -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.126 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.28.126 mx205.easyname.com Received: from [212.232.28.126] ([212.232.28.126:43026] helo=mx205.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/65-03097-CAE2DE65 for ; Sat, 19 Mar 2016 05:49:17 -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 1ahERW-0005ml-6t; Sat, 19 Mar 2016 10:49:14 +0000 Reply-To: internals@lists.php.net References: <56E9CC3E.10205@telia.com> <56E9D45D.4060309@fleshgrinder.com> <56EC611F.7050601@fleshgrinder.com> <56ED2C1C.3090902@telia.com> To: internals@lists.php.net, =?UTF-8?Q?Bj=c3=b6rn_Larsson?= Message-ID: <56ED2E94.5050902@fleshgrinder.com> Date: Sat, 19 Mar 2016 11:48:52 +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: <56ED2C1C.3090902@telia.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5exuP7Sjum0XJQUc9876R34gauuw8uPnI" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: php@fleshgrinder.com (Fleshgrinder) --5exuP7Sjum0XJQUc9876R34gauuw8uPnI Content-Type: multipart/mixed; boundary="FswqRMq9RVhFkcVX6VeNPsUQQjIMpFONw" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net, =?UTF-8?Q?Bj=c3=b6rn_Larsson?= Message-ID: <56ED2E94.5050902@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties References: <56E9CC3E.10205@telia.com> <56E9D45D.4060309@fleshgrinder.com> <56EC611F.7050601@fleshgrinder.com> <56ED2C1C.3090902@telia.com> In-Reply-To: <56ED2C1C.3090902@telia.com> --FswqRMq9RVhFkcVX6VeNPsUQQjIMpFONw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3/19/2016 11:38 AM, Bj=C3=B6rn Larsson wrote: > Den 2016-03-18 kl. 21:12, skrev Fleshgrinder: >> No worries you are not, not at all. I just wanted to thwart you and >> others in directly assigning ... >> >> final class A { >> int $x; >> } >> >> ... to be *public* and obstruct the opportunity of assigning it a >> meaningful new functionality. >> > Well, but if one should assign int $x without visibility keyword a > meaning, shouldn't it be the same as for function y() {} without > keyword, i.e. public? >=20 > Of course one can change both, but that sounds like a 8.0 topic. >=20 > Regards //Bj=C3=B6rn >=20 >=20 It is a sad state the implicit public properties use *var* and implicit public methods nothing, this makes the introduction of new visibility modifiers terribly complicated. You are completely right, they should be the same and *var* should be banned. It is consistent and that is very important. I cannot and do not want to argue against this. Yet at the same time the lack of access (and additional visibility) modifiers is what I am missing the most. Seems as if this has to wait for 8.0 (or 9.0, depending on the resistance). :( --=20 Richard "Fleshgrinder" Fussenegger --FswqRMq9RVhFkcVX6VeNPsUQQjIMpFONw-- --5exuP7Sjum0XJQUc9876R34gauuw8uPnI 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 iQIcBAEBCAAGBQJW7S6ZAAoJEOKkKcqFPVVrcYcQAMQdyo0aJ73lcKsREAhvtt6D rXexgBYYPxAArPCAn0Xg3x6FT+agzNSeFeJZtGQf0Y0AY6rvuwHXS7z3g50fYllm TkAvre6rzDb2rYUuJsAxDQ1Rn5aXUBh1uSmF66mWRon6xMIZzyoe7UPJ90uneSbZ kwlQ59ihkSnow30dRgXC0fAJRTX+mAwqDcP3Hzp1z5BKI1+yLbLPFfxI264N6SUZ eQmGKi7YPdqQ+W9UfZXBCQ5n+2RAObwh+V7eeZDNWCIgsK0GTUaJ1kpg5yqqyTSO P2XC6kfXOuGpw0+shfi0sQaywT0uqaomkO4ghB+rm6/YkMOHn6e4E/pS9vzbg4k1 5Nrvspivh9ScSj0Ptc/dp5DTZiDMhFP6xYAOFtnw0iK5mL1ZaO7aKKAwRTS89x71 4yVqlX96T7HRo5F/IghjQJetle/Sw7aP8r9/Ip0vojzFShN33M5gNx/UYHiDSeyh yR49Xqkq8bGakxMaijeK4QDZ44EQUHX8QiGYFlDZan7WbQWhp/IhrGhUP1+MoNbm tVWW2oNH7siezWJ9ZTGdtH3QaTejuH74t1jLnQMJW7Wy+6KonmmXPqWHiAXrOuPw vwSPQSpluoJfwLHLyUZuiFuXR0wcWx2kOJPGFEPu4+ntyIeD1c+bS3HyRiBaOWhF 3ZcLWfRv91vf8/UpZOVC =7tHR -----END PGP SIGNATURE----- --5exuP7Sjum0XJQUc9876R34gauuw8uPnI--