Re: [RFC] Default constructors
| From: | Stanislav Malyshev | Date: | Tue, 18 Nov 2014 19:00:09 +0000 |
| Subject: | Re: [RFC] Default constructors | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78950@lists.php.net to get a copy of this message | ||
Hi!
> Thanks for bringing this up and working on the patch.
> Last time we discussed
> this(http://www.serverphorums.com/read.php?7,712222,712635), there were
> a couple of people including Anthony and Sanford who were agains this
> feature arguing that it would encourage bad practices so I think it
Obviously, I disagree with that. I do not see any bad practices it
encourages - if anything, it encourages the good practice of always
calling parent ctor, practice considered so good by many that some
languages make it mandatory.
The discussion of __call etc. presented there does not seem too relevant
for me - __call was never called on missing ctor and it makes zero sense
to do so since no sane implementation uses __call do dispatch
constructors. I'll need to check though if my changes don't have BC
impact on __call (they should not, but I did not check before, so I'll
check that too).
Thanks,
Stas