Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41708 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53612 invoked from network); 6 Nov 2008 09:50:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2008 09:50:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.92.25 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 74.125.92.25 qw-out-2122.google.com Received: from [74.125.92.25] ([74.125.92.25:62264] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/B3-35522-9DDB2194 for ; Thu, 06 Nov 2008 04:50:17 -0500 Received: by qw-out-2122.google.com with SMTP id 8so285358qwh.59 for ; Thu, 06 Nov 2008 01:50:14 -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 :content-transfer-encoding:content-disposition:references; bh=7h9pyA+eDoGNhMs7JicXQuGjefsf9DTiOs1quCQ1ncY=; b=tcugclyboroFrq2xrcSwTYX/JxDLqqQLbjqb0OqjavJHItYwTB7EAbLX9i/9CKY0A7 2svGkgf6yfd6eMcqpFZ1KQPL8otDnUlU3GJXjoRWvWCxjaYQmzN6im97Vg1HYJ3QoRxK eB2hoNs2E0GyN5aPNRD5S9y/tWOxEGaYgiRrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RPIjXhxPEpUpUjAE4Gdp9a4dsmhezQDDGAfH7H4dZmWtmwdR4YqippYuDGWlnKW1nm /zl7iV0jaO3IrHEBUmpE6PkA+pbVW50JseYvAfxd0lzdGALDDng0ZmrPveNkGTgNLJnO wGPwDDBOYDaXy+uVPtDWcKhIFhXY0WSA7R+ek= Received: by 10.214.80.1 with SMTP id d1mr1951043qab.288.1225965014849; Thu, 06 Nov 2008 01:50:14 -0800 (PST) Received: by 10.214.78.21 with HTTP; Thu, 6 Nov 2008 01:50:14 -0800 (PST) Message-ID: <98b8086f0811060150p2fb0312dj66896cb227c871ec@mail.gmail.com> Date: Thu, 6 Nov 2008 10:50:14 +0100 To: Dan Cc: "Larry Garfield" , internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4EA88C3A8A2747989925A5D21448FCE7@pc> <200811052154.29537.larry@garfieldtech.com> Subject: Re: [PHP-DEV] Call it: allow reserved words in a class or not? From: troelskn@gmail.com ("troels knak-nielsen") On Thu, Nov 6, 2008 at 10:35 AM, Dan wrote: > What if you want to provide a set of helper/wrapper classes, appropriately > namespaced, something along the lines of: > MyFramework\Helpers\Array > MyFramework\Helpers\Database > MyFramework\Helpers\Session > etc. > > If I want to use that naming convention, I don't want to have to name some > of my classes differently just because PHP can't deal with it. It may not be > trivial to fix, but to the end-developer, it's a trivial problem and it's > something that should just work. I think the point is the same as with Zend_Validate_Interface ; While MyFramework\Helpers is a fair namespace, Array is a bad classname. You should use something like MyFramework\Helpers\ArrayHelper FWIW Zend_Validate_Interface looks odd to me today already, for that reason exactly. I read two namespaces and a classname, and that classname doesn't make much sense. -- troels