Re: [PEPr] Changes in proposal for Util::Util_Observable

From: Date: Fri, 17 Sep 2004 15:42:51 +0000
Subject: Re: [PEPr] Changes in proposal for Util::Util_Observable
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33409@lists.php.net to get a copy of this message
Stig S. Bakken wrote:
But it's not an Interface you can Observe, it's an Interface to make something Observable. Also, Interface is a general category and IMHO should be a prefix for that reason. Class names in PEAR are supposed to go from general to specific.
I doubt anyone will misunderstand "Observable_Interface" as "an interface you can observe". There is precedence for this format in how exception and error classes are named, diverting from that is what would cause confusion.
Maybe we could implement this solution: package-specific interfaces should go in a subdirectory of the package and be named Package_Interface_Blah, and be in Package/Interface.php global standard interfaces (like this one) should be in the Interfaces/ directory and be named Interface_Blah or Interface_Category_Blah (like Interface_Mail_Transport or something) and be in Interface/Blah.php or Interface/Category/Blah.php That sound reasonable? Greg

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