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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to