Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94208 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66040 invoked from network); 22 Jun 2016 16:20:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2016 16:20:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:62355] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/63-43024-CDABA675 for ; Wed, 22 Jun 2016 12:20:45 -0400 Received: from [192.168.2.103] ([217.82.227.154]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Md3ZK-1axfm840ME-00I9hK; Wed, 22 Jun 2016 18:20:39 +0200 To: Rasmus Schultz , Lester Caine References: <576A6165.8090904@lsces.co.uk> Cc: PHP internals Message-ID: Date: Wed, 22 Jun 2016 18:20:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:jlK2CKKdw4xK0fFF/skRE1uo9shh7n4Q7hciv9+DHo6jqnzXA9E cXfXuQXlu1Vo1zn4RqrHJ0Hie4R398+Dt3Tycn6CBgSX8ymweHKGAloB2uRy/AOI7Mfrmaq 2HHJDluaFmenQDCPNq8CXiOu7WeB6AUOGTgYHrXDutnFslZF/eOZkaNAwgN3WISo4aPCBUs zsp7lW8aA9mlM/E92JBKA== X-UI-Out-Filterresults: notjunk:1;V01:K0:fpGd3oCiz3Q=:9jdHCmCVFzjbBZHokOZylm WrF6DueodR+KDD1o+EL7BiX5zhHCwhI54jMiWxrF+jnS4tSgm3ll00FeojeReiMvfKhIK7+1C oPyQFrcLciKI+UVAUvlFn3QRk3wsD5dFWS8kqPiR1lbuw+WB+ahMWZ4CJvODpuMi57H0vM66U hyY96DM6Sum2Peup4+rsZDB8f94Nlf1tuiaO7wtOZL12Z3hFC2O6ajtjdUwYp9u0PcxVl1OyY Ci+DNixrsiouFI3itw7axhyAN1wEwSPaTh768zCQM0ZAmlLPU/s4IDhMh8Nw6FUBp6M/wQiXt CK12xpTyfZnBnhSEqly1UajuvzfLB7zb7wribvkPdWb25QmUoA8GpWK0dGA2c28Acd0TNInuj FGLLkl6D3EjRthXQ7r5F4trzLnGVijEzky82s6DKHHv+pn+q1CprzTC/TVXlQHCjDbJ/MAFu6 5g4qBRz2rd8NeuO8svQSXT6gN2eV1NYrHcbJQ7OBgX8t/6/J8ovym5GZS1Ss124DA2IwnO7Ml MDQxrRY0+3xvC8k+SNdPqlHuMaoh0sPH85Scujlk7Y8XpKTLFJf5ccLj/fIaf8KHg7k4wpyf3 pTwwvqwVTwf8a1s21C/aVnuXYunQGgaS5XuxtLz/XkEpBsj4ORS1G7+pmuTwZC1g3bfElnqVc SmWs4KOHn3MdzsPpMLJi5SU8a8ujgDAVyc/mxuf282dOocUbB7kFmJi22Y5bPYMfC9VoaDYyI inc/MpP2ssHrQ+bV3s/uKBfjrBwZc+qA3AcOX6A774l5lqrchyIjsRDSwuQ9cM6XmS7Gg2jXx xv5nUBR Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: cmbecker69@gmx.de (Christoph Becker) On 22.06.2016 at 17:58, Rasmus Schultz wrote: > Give them a consistent language and new developers will rise to the > occasion - I'm sure of it. You're just not giving them a chance. > Type-hinted properties are a step towards fixing that situation - they > don't add, they *remove* complexity and learning curve from the > language. > > Consistency, when it comes to languages, is always simpler and less > surprising than inconsistency. ACK. > PHP *has* type-checks - the introduction of property type-hints is not > a new feature, it's fixing an inconsistency. I'd argue that the current proposal brings new inconsistencies, namely that you can type properties (besides already supported parameters), but not other variables (okay, these are not properties, but still), no static properties and there are restrictions regarding references to typed properties. In my opinion, these restrictions can be very confusing for users – one already sufficient reason for me to abstain from voting on a feature I'd like in principle. -- Christoph M. Becker