Re: Question about Namespace patch
| From: | David Zülke | Date: | Mon, 23 Jul 2007 14:42:04 +0000 |
| Subject: | Re: Question about Namespace patch | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31188@lists.php.net to get a copy of this message | ||
Am 23.07.2007 um 16:25 schrieb Brian Moon:
Oh yes, sure, that must be the main point about namespaces - I can use "::" instead of "_" as a delimiter! Yay! Come on, you can't be serious. Davidimport SQLAlchemy::Column import SQLAlchemy::Table import SQLAlchemy::Join import SQLAlchemy::ForeignKey import SQLAlchemy::Session import SQLAlchemy::TransactionWhy use namespaces if you are going to do this? You are just bringing your classes into the global name space. The nice thing about namespaces IMO, is that I don't have to have a class named SQLAlchemy_Transaction. I can just have a class named Transaction in the SQLAlchemy namespace. I can then create a new object using $obj = new SQLAlchemy::Transaction.