Re: [RFC][DISCUSSION] - Disallow Multiple Constructor Calls
| From: | Marcio Almada | Date: | Tue, 17 Jan 2017 21:08:00 +0000 |
| Subject: | Re: [RFC][DISCUSSION] - Disallow Multiple Constructor Calls | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97833@lists.php.net to get a copy of this message | ||
Hi Tim,
I'm ok with the idea. But could you elaborate why not propose a deprecation
before the error on PHP 8?
Also, one point about the future scope "Add shorthand parent() as
alternative to parent::__construct().":
Do we really need to introduce more language constructs that look like
valid user space code https://3v4l.org/CE2q8 ?
Thanks.
Márcio.
2017-01-17 16:17 GMT-04:00 Tim Bezhashvyly <tim.bezhashvyly@gmail.com>:
> Dear internals,
>
> me and Richard Fussenegger came up with a RFC draft disallowing multiple
> constructor calls - https://wiki.php.net/rfc/
> disallow-multiple-constructor-calls <https://wiki.php.net/rfc/”�,
> ÉÂdiÞnŽÐw
> disallow-multiple-constructor-calls>
>
> Here is a Reddit discussion thread -
> https://www.reddit.com/r/PHP/
> comments/5okdac/php_rfc_disallow_multiple_constructor_calls/ <
> https://www.reddit.com/r/PHP/comments/5okdac/php_rfc_
> disallow_multiple_constructor_calls/>
>
> Any suggestions are highly welcome. Thank you.
>
> Regards,
> Tim
>