Re: namespaces ... coming to a php5.3 near you.
| From: | Jochem Maas | Date: | Fri, 12 Sep 2008 10:56:59 +0000 |
| Subject: | Re: namespaces ... coming to a php5.3 near you. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279950@lists.php.net to get a copy of this message | ||
metastable schreef:
Jochem Maas wrote:probably a big performance cost. that said I'd like to hear/see some more of your implementation, could you elaborate?Jochem Maas schreef:I haven't tried php namespaces yet, but have implemented them for my own projects, to 1) avoid the ever enduring hassle of setting directory paths for every host where the project lives in one form or another (dev, test, production). 2) calling classes according to their logical structure, in stead of figuring out in what freaking folder I put the class. namespaceMyProjectName('db.mysql.MySqlHandler'); Nice and easy, although at a performance cost atm.has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems?so no-one? really? none of you muppets ever even smelled a namespace?I'd like to hear from you as I've been asked to compile a reference documenting anything/everything people may have come across (so far as namespaces go), if you have some reproduce code, all the better. rgds, Jochem
I'm looking forward to seeing how PHP handles it.well download an alpha of php5.3 and take a look, more testers are needed ... this is a major addition and there are plenty of edge cases (it seems) that have yet to be covered.
greetz, Stijn