[PEPr] Comment on Util::Util_Observable

From: Date: Fri, 23 Jul 2004 18:38:41 +0000
Subject: [PEPr] Comment on Util::Util_Observable
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32284@lists.php.net to get a copy of this message
Heino H. Gehlsen (http://pear.php.net/user/heino) has commented on the proposal for Util::Util_Observable. Comment: Alan, although it’s correct that the double underscores are not common use in PEAR, they serve a distinct purpose, since they are used to differentiate between primary and secondary classes in the same file. This prevents future conflicts since such secondary classes don’t break the classic naming. Take the DB.php file in PEAR for instance; it includes multiple classes too: DB, DB_Error, DB_result etc. Such class names would conflict with a possible future file named DB/Error.php, which would have precedence according to the naming convention. Like it or not, but that’s my reasoning for using double underscores... As for you complaint about the WTF is the source, I believe the above explanation should be enough to prove that the "WTF is the source for this" syndrome has been taken care of. Also the above explanation should explain why I personally don’t like your “Util_Observer_Interface_* all stored in Util/Observer/Interface.php” suggestion. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=125 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#32284) next »