Re: [PHP-DEV] RFC: constructor argument promotion

2013-08-07 Thread Sean Cannella
uctor must be X type, ergo the post-ctor values of the props will be of type X. I can see the argument that it suggests real (permanent) typing where none exists though. Thanks, Sean Cannella | Facebook Eng If you are smart and persistent, you may find the truth. It is not always a reward.

Re: [PHP-DEV] RFC: constructor argument promotion

2013-08-07 Thread Sean Cannella
tor could parse __construct's Doc Comment. This is arguably more work for the IDE and/or PhpDoc generator, but the data is still there. Thanks, Sean Cannella | Facebook Eng If you are smart and persistent, you may find the truth. It is not always a reward. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] RFC: constructor argument promotion

2013-08-07 Thread Sean Cannella
et the PHP community's opinion on this feature. See the draft RFC and referenced implementation below: https://wiki.php.net/rfc/constructor-promotion What do you all think? Thanks, Sean Cannella | Facebook Eng If you are smart and persistent, you may find the truth. It is not always a reward.