Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48167 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50601 invoked from network); 30 Apr 2010 05:38:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2010 05:38:05 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 209.85.222.173 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.222.173 mail-pz0-f173.google.com Received: from [209.85.222.173] ([209.85.222.173:54089] helo=mail-pz0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/B7-26584-CBC6ADB4 for ; Fri, 30 Apr 2010 01:38:05 -0400 Received: by pzk3 with SMTP id 3so7953901pzk.26 for ; Thu, 29 Apr 2010 22:38:02 -0700 (PDT) Received: by 10.115.133.12 with SMTP id k12mr11950835wan.6.1272605881923; Thu, 29 Apr 2010 22:38:01 -0700 (PDT) Received: from monster.local ([76.84.35.200]) by mx.google.com with ESMTPS id c22sm7353166wam.18.2010.04.29.22.37.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 22:38:00 -0700 (PDT) Message-ID: <4BDA6CB5.3080208@chiaraquartet.net> Date: Fri, 30 Apr 2010 00:37:57 -0500 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: sylvain@abstraction.fr CC: internals@lists.php.net References: <1272491141.3021.59.camel@kheops> In-Reply-To: <1272491141.3021.59.camel@kheops> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: backslash, really ... ? From: greg@chiaraquartet.net (Greg Beaver) On 4/28/10 4:45 PM, Sylvain Rabot wrote: > Hi, > > The comment I'm about to make is behind the times, and, now, useless, I > know, but I can't hold me. > > You chose for the namespace feature, a great feature besides, the > backslash ?? really ?? Come on guys, among all the possibilities, you > have chosen, according to me, the most hideous character possible. > > Having Windows©®™ path like strings in the middle of source code is not > something that is going to make me use the feature. > > PHP syntax was simple, clean. To me, the backslash token ruins > everything. Using it aside from escaping was something I have never > considered, have you ? Do you like it ? > > The goal of backslash was maybe to highlight namespace in the source > code, if it was, congrats, we only see that now. > To my opinion it breaks all esthetic's balance of a source code. > > No need to respond that I should have contribute to the choice, believe > me, if I could have, I would have. > > This was just the comment of a simple guy which is very concerned about > source code esthetic's and believes that a neat, well balanced code is > more likely to be well maintained that any other one. You probably haven't tried using it much yet. The primary annoyances I've found with namespaces are: 1) forgetting to \Prefix internal class names like Iterator 2) people who complain about the namespace separator because it's cool to do so with zero understanding of the technical challenges or the aesthetic (yes, aesthetic) wrangling that went into the choice Otherwise, it works (no small achievement: namespaces + PHP + autoload is a nightmare to do properly, you should thank Dmitry and Stas for their hard work as well as the countless pre-iterations that inspired the final version), with no unexpected name resolution problems or performance issues. As a reminder, in programming aesthetics = the elegance, performance and robustness of a problem's solution. If you're caught up on whether your code has the exact right kind of visual look (beyond an enforced coding standard), perhaps you could benefit from a good old-fashioned traffic spike to your site to correct the impulse. :) Regards, Greg