note 113843 added to language.oop5.final

From: Date: Sat, 07 Dec 2013 22:25:23 +0000
Subject: note 113843 added to language.oop5.final
Groups: php.notes 
Request: Send a blank email to php-notes+get-197833@lists.php.net to get a copy of this message
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. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.oop5.final.php Edit -- https://master.php.net/note/edit/113843 Del: integrated -- https://master.php.net/note/delete/113843/integrated Del: useless -- https://master.php.net/note/delete/113843/useless Del: bad code -- https://master.php.net/note/delete/113843/bad+code Del: spam -- https://master.php.net/note/delete/113843/spam Del: non-english -- https://master.php.net/note/delete/113843/non-english Del: in docs -- https://master.php.net/note/delete/113843/in+docs Del: other reasons-- https://master.php.net/note/delete/113843 Reject -- https://master.php.net/note/reject/113843 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197833) next »