Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33749 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3450 invoked by uid 1010); 5 Dec 2007 18:08:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3435 invoked from network); 5 Dec 2007 18:08:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 18:08:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=malterisio777@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=malterisio777@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.234 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: malterisio777@gmail.com X-Host-Fingerprint: 64.233.162.234 nz-out-0506.google.com Received: from [64.233.162.234] ([64.233.162.234:21145] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/1A-20707-F19E6574 for ; Wed, 05 Dec 2007 13:08:31 -0500 Received: by nz-out-0506.google.com with SMTP id x7so2558699nzc for ; Wed, 05 Dec 2007 10:08:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=d1DeKkiAh7NlbrUKxXjh13+YcUGIoKJSWeRsJD4X6es=; b=of7XoT7aYA8IF6unruxUgsOybyz4CBHBseEPos8/LyBvMqwg6tz7yFo83lIx0XKN6SWBJcQCGm+dUAJphvqLwkCjadIXElpWiMJVRJ01uqvhoPSEHsEn+TRPUzlCYmOpnXySQhNZPqBzIkh91i+OcHDo38kzID5rJ0mT99TK+k8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=LjoZNapOWexpiwOQzVLHqw6ZXyrtRd4QECytFYCoaMS3xMmTzsXx1PK5ZHBPk8HxmFxaE4cx4Gul3M8Gq0rJZwuafRLa8a5A6Kd9TVirmUj6TKf1cm4M0uYK+dBtquNKhe3XUf5i3TvVjGjeoBTxi6LcfE/nDhoSA7dbUobKBdI= Received: by 10.142.239.11 with SMTP id m11mr1141706wfh.1196878108216; Wed, 05 Dec 2007 10:08:28 -0800 (PST) Received: by 10.142.157.9 with HTTP; Wed, 5 Dec 2007 10:08:28 -0800 (PST) Message-ID: <52dbac0f0712051008k5561b438g974e77b0c655de9d@mail.gmail.com> Date: Wed, 5 Dec 2007 15:08:28 -0300 To: "Robert Cummings" Cc: "Stanislav Malyshev" , "Larry Garfield" , internals@lists.php.net In-Reply-To: <1196876641.14915.40.camel@blobule> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2207_27118067.1196878108203" References: <200712042226.08192.larry@garfieldtech.com> <1196829384.14915.6.camel@blobule> <4756E11B.8030302@zend.com> <1196876641.14915.40.camel@blobule> Subject: Re: [PHP-DEV] RFC: Dropping Namespace From: malterisio777@gmail.com ("Martin Alterisio") ------=_Part_2207_27118067.1196878108203 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/12/5, Robert Cummings : > > On Wed, 2007-12-05 at 09:34 -0800, Stanislav Malyshev wrote: > > > Namespace support is for people who didn't name their > classes/functions > > > properly. > > > > Here's a claim so weird I don't know how to parse it. > > I think you're confusing parsing for grokking. Namespace support is > merely candy coating for naming conventions. Namespaces have the same > collision problems that class naming and function naming have. Only > confined to the name of the namespace itself. This is identical to using > a prefix when naming your classes or functions. The only thing > namespaces bring to the table beyond that, is the ability to shorthand > the class names within the namespace... as I said candy coating. If > everyone had named their classes and functions with appropriate prefixes > then this would be a non-issue. Seriously, how were so many people so > short-sighted to think that only they would ever call a class "Date". > There's only a few million other candidate developers out there with the > similar ideas. Sorry to intrude again, but that's not entirely true. As of now, PHP namespaces may be called just sugar coating for naming conventions, but, as I see it, they're just a first step towards a more complete implementation of namespaces, which means more granular control over class visibility and scope. This much enhances encapsulation on a broader level, which is a basic need for any proper OOP supporting language. In other words, without namespaces, we can't even start thinking about encapsulation at package level, we'll just have all our classes publicly available everywhere. ------=_Part_2207_27118067.1196878108203--