Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31190 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57202 invoked by uid 1010); 23 Jul 2007 14:44:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57184 invoked from network); 23 Jul 2007 14:44:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 14:44:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=pstradomski@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pstradomski@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.189 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pstradomski@gmail.com X-Host-Fingerprint: 64.233.182.189 nf-out-0910.google.com Received: from [64.233.182.189] ([64.233.182.189:42492] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/DE-32314-CAEB4A64 for ; Mon, 23 Jul 2007 10:43:58 -0400 Received: by nf-out-0910.google.com with SMTP id e27so104104nfd for ; Mon, 23 Jul 2007 07:43:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-disposition:message-id:content-type:content-transfer-encoding; b=MJn+ntw0KdjvQkrQMGESPLHhcuXgZly5AmrXhsmVE2CMFIREbSKCi0VsixZFRWW5Y6mAgA5n2MiXSuwPs/Qp7RtJnnQniG9/zGD1rSHx21z/vb+Hi9IHnPOxvsscq621R8S+NWlHpSDmjVESuqQ05vD+AlDSPZp6pYrUpTWU0jQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-disposition:message-id:content-type:content-transfer-encoding; b=S29BVkMi4rx7huifqlmfEo6AztIZc9wLxlDzl8eOM1ehhHRQB/3jUAWdN+OWPkSt9axvBhuqANElZ0XXYRyGQQlJDVUQTjfPUDIwSWam45Mv8+ey79LrlqGltiFkF1FZAeCs+WWjb7UdXWPwE93Yz2EbsPWW0s99/BoJuloosFE= Received: by 10.82.116.15 with SMTP id o15mr2177218buc.1185201830094; Mon, 23 Jul 2007 07:43:50 -0700 (PDT) Received: from ?10.0.2.7? ( [213.158.196.70]) by mx.google.com with ESMTPS id k9sm23090348nfh.2007.07.23.07.43.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jul 2007 07:43:49 -0700 (PDT) Reply-To: =?iso-8859-2?q?Pawe=B3_Stradomski?= To: internals@lists.php.net Date: Mon, 23 Jul 2007 16:43:22 +0200 User-Agent: KMail/1.9.5 References: <46A31D95.2080407@fischer.name> <200707231140.55535.pstradomski@gmail.com> <46A4BA4F.6090506@dealnews.com> In-Reply-To: <46A4BA4F.6090506@dealnews.com> MIME-Version: 1.0 Content-Disposition: inline Message-ID: <200707231643.22562.pstradomski@gmail.com> Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Question about Namespace patch From: pstradomski@gmail.com (=?iso-8859-2?q?Pawe=B3_Stradomski?=) Brian Moon wrote > > import SQLAlchemy::Column > > import SQLAlchemy::Table > > import SQLAlchemy::Join > > import SQLAlchemy::ForeignKey > > import SQLAlchemy::Session > > import SQLAlchemy::Transaction > > Why 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 =3D > new SQLAlchemy::Transaction. Because I just want those names directly available in one part of my=20 application - the one which uses a lot of SQL. As far as I see this is not= =20 possibl with the proposed implementation - I can't do a local (file-scope o= r=20 namespace-scope) import. All other languages I know that have namespaces (Java, python, C++) allow=20 programmers to import other namespaces locally - usually for a single file.= =20 =2D-=20 Pawe=B3 Stradomski