Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18255 invoked by uid 1010); 3 Jan 2008 01:31:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18240 invoked from network); 3 Jan 2008 01:31:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2008 01:31:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 76.96.62.64 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 76.96.62.64 qmta07.westchester.pa.mail.comcast.net Received: from [76.96.62.64] ([76.96.62.64:59874] helo=QMTA07.westchester.pa.mail.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/17-07933-8FA3C774 for ; Wed, 02 Jan 2008 20:31:37 -0500 Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA07.westchester.pa.mail.comcast.net with comcast id YRQ31Y00r1HzFnQ0500t00; Thu, 03 Jan 2008 01:31:34 +0000 Received: from earth.ufp ([71.228.13.89]) by OMTA14.westchester.pa.mail.comcast.net with comcast id YRXU1Y00H1vH2xB3a00000; Thu, 03 Jan 2008 01:31:29 +0000 X-Authority-Analysis: v=1.0 c=1 a=W3JL9mOV9tEA:10 a=aeXBnJw7ZHuST8cRds8A:9 a=ZPZQwhivPiYl-dk6l0oA:7 a=3vi_QX6pkgX-uvBa6wpYJ9_UDVsA:4 a=FHBbIDN7CdwA:10 a=LY0hPdMaydYA:10 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id 2C422D8370 for ; Wed, 2 Jan 2008 19:31:34 -0600 (CST) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kBifHyouv6tc for ; Wed, 2 Jan 2008 19:31:34 -0600 (CST) Received: from vulcan.ufp (vulcan.ufp [192.168.42.4]) by earth.ufp (Postfix) with ESMTP id F2CF8D836C for ; Wed, 2 Jan 2008 19:31:23 -0600 (CST) To: internals@lists.php.net Date: Wed, 2 Jan 2008 19:34:40 -0600 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <7C37FF3A0196094F95430BA95952032211BA43@s1.mkj.lan> In-Reply-To: <7C37FF3A0196094F95430BA95952032211BA43@s1.mkj.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200801021934.40799.larry@garfieldtech.com> Subject: Re: [PHP-DEV] Suggestion: Namespace implementation From: larry@garfieldtech.com (Larry Garfield) On Thursday 27 December 2007, Hans Moog wrote: > In my oppinion namespaces should only be an additional way of > structering php elements and using short names again without loosing the > abilitiy to avoid naming conflicts with 3rd party libraries. Since > libraries are generally class libraries and because of already being > able to group variables, constants and functions in static classes i see > no reason for namespaces to affect the resolution of the previously > mentioned elements. Instead, they should only affect classes enabling > the coder to tie packages and use or provide libraries. "Libraries are generally class libraries" is both wrong and very limiting. There is nothing wrong with functions. Thousands of professional web sites run on systems that have not a single class in them quite successfully. There are plenty of situations where going all OO is not a good thing, and results in more code complexity, not less. A "complete" namespace implementation supports both classes and functions equally. -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson