Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58316 invoked by uid 1010); 23 Jul 2007 17:15:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58300 invoked from network); 23 Jul 2007 17:15:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 17:15:34 -0000 Authentication-Results: pb1.pair.com header.from=pstradomski@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pstradomski@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.173 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: 66.249.92.173 ug-out-1314.google.com Received: from [66.249.92.173] ([66.249.92.173:4532] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/D9-27148-432E4A64 for ; Mon, 23 Jul 2007 13:15:34 -0400 Received: by ug-out-1314.google.com with SMTP id c2so1271964ugf for ; Mon, 23 Jul 2007 10:15:25 -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-type:content-transfer-encoding:content-disposition:message-id; b=nRN0bJwZrihaUc29kjjrGB8Uejk/DhDpaWHn5Pm5QRWwa7HO8cOisXZgVuf83Qvbo1OiHSxcXpK2ptsnq9GD+7CnglNLXIxgx6oExYahVNhQm4VUCfgE5RuoefStw20tjwAdvrk5DOJGueqxxffWe1McM50fsEfvxqNO/1iCbZM= 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-type:content-transfer-encoding:content-disposition:message-id; b=o+WIUG/OkYv+uDnmThH6PjWHGrZffAk7kyuyc7NSSg2E0AvnxnWBNhAxrkCS1gYTeTatmqbcwW81tnAUkelx9VSdR+LC1YyLrrfYzkt8exmt1dlMANxhy1/x5WqmHFNJ7+k5FGeMJahG4q+quCLPev6iJqcU4AnRkTG/veAWwU0= Received: by 10.86.4.2 with SMTP id 2mr2588336fgd.1185210925433; Mon, 23 Jul 2007 10:15:25 -0700 (PDT) Received: from deimos ( [91.196.215.2]) by mx.google.com with ESMTPS id y18sm14604418fkd.2007.07.23.10.15.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jul 2007 10:15:24 -0700 (PDT) Reply-To: =?iso-8859-2?q?Pawe=B3_Stradomski?= To: internals@lists.php.net Date: Mon, 23 Jul 2007 19:13:26 +0200 User-Agent: KMail/1.9.7 References: <46A31D95.2080407@fischer.name> <200707231643.22562.pstradomski@gmail.com> <46A4D07A.7060006@zend.com> In-Reply-To: <46A4D07A.7060006@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200707231913.27120.pstradomski@gmail.com> Subject: Re: [PHP-DEV] Question about Namespace patch From: pstradomski@gmail.com (=?iso-8859-2?q?Pawe=B3_Stradomski?=) Stanislav Malyshev wrote: > > Because I just want those names directly available in one part of my > > application - the one which uses a lot of SQL. As far as I see this is > > not > > If you want names to be part of global space - don't use namespaces. > Namespaces are meant to take names OUT of global space. Once again. I do not want classes/function from ORM lib to clutter my globa= l=20 namespace everywhere. I just want everything from it to be available in=20 couple of files (where lots of SQL/mapping) is going to be used. In those f= ew=20 files I'll be able to keep control of names and avoid conflicts. Sure, I can prefix all the names or insert a bunch of imports, although it'= ll=20 just be ugly. And about "not using namespaces" - there are such things as code libraries.= =20 Those will probalby be namespaced - so I'll be using namespaces even in sma= ll=20 scripts - just because I'll be using those libs. If using a bunch of imports is the only way that is accepted - then at leas= t a=20 shortcut like python's "from x import a,b,c,d,e,f,g,h" would be a nice. =2D-=20 Pawe=B3 Stradomski