> On 18 Nov 2014, at 19:00, Stanislav Malyshev <smalys...@gmail.com> wrote:
> 
>> 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.

Yes, calling the parent constructor is good practice. That doesn’t mean we 
should add this, though. Because this RFC means you can just blindly call the 
constructor, whether or not it exists, and expect it to work. And that is bad: 
If you don’t know how the parent class works, you really shouldn’t be extending 
it.
--
Andrea Faulds
http://ajf.me/





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

Reply via email to