note 113843 deleted from language.oop5.final by sobak

From: Date: Fri, 25 Nov 2016 08:07:52 +0000
Subject: note 113843 deleted from language.oop5.final by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207677@lists.php.net to get a copy of this message
Note Submitter: thomas at somewhere dot com ---- Please, please, please never use this keyword anywhere in your code. By using it you are saying that you somehow magically know that your class or method is perfect and will suit every possible use of the class API you're defining and that no one will ever need to do so much as add some data checking before calling parent:: on the method. This is never true and will never be true, so let the poor programmer that needs to extend your code do so. If you want to have "final" in your code then you don't understand OOP. Hopefully this will be removed in some future version of the language.

« previous php.notes (#207677) next »