On Wed, Aug 7, 2013 at 12:47 PM, Sean Cannella <se...@fb.com> wrote:
> Everyone -
>
> Hi! Since this is my first post to this list, I'll introduce myself:
> I'm an engineer who has been working on HipHop VM in New York for the last 
> half year or so after a long time working at Microsoft on business software 
> and services in multiple hemispheres.
>
> I wanted to get the PHP community's opinion on this feature. See the draft 
> RFC and referenced implementation below:
>
> https://wiki.php.net/rfc/constructor-promotion


Using private and protected there seems really weird.
>From globals scope, I am allowed to set private and protected
properties - but just once?


I would assume __construct(protected $bar) would only allow a child
class to set that property.. which implies the ctor itself is
protected.


Also, this seems like a very bad idea. You are encouraging "don't
bother validating your data" ideas.

-Hannes

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

Reply via email to