Re: proposal preview of PEAR_PackageFileManager_Frontend
| From: | Christian Weiske | Date: | Tue, 28 Mar 2006 17:38:38 +0000 |
| Subject: | Re: proposal preview of PEAR_PackageFileManager_Frontend | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-42016@lists.php.net to get a copy of this message | ||
Laurent,
>> - Could you make the realpathnix() and array_merge_recursive2() static
>> class methods so they don't pollute the global namespace?
> Even if realpathnix() and array_merge_recursive2() are only used into
> Frontend.php, is there a technical or QA reason to make them static
> methods ?
In my opinion the problem is that there may be global methods with the
same name, especially in larger projects - same name, but different
functionality and different parameters. That's why it is in general a
good idea to keep methods (and constants [in php5]) in the own
"namespace", being the class itself.
> Hope i've answered to your question ?!
You did.
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc