Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41573 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47501 invoked from network); 30 Oct 2008 12:31:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2008 12:31:00 -0000 X-Host-Fingerprint: 84.140.216.22 p548CD816.dip.t-dialin.net Received: from [84.140.216.22] ([84.140.216.22:2782] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/FA-15516-109A9094 for ; Thu, 30 Oct 2008 07:30:59 -0500 Message-ID: To: internals@lists.php.net Date: Thu, 30 Oct 2008 13:30:53 +0100 User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 References: <7E40142348CB4407881593314363972A@pc> In-Reply-To: <7E40142348CB4407881593314363972A@pc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 84.140.216.22 Subject: Re: Proposal for new construct: nameof From: karsten@typo3.org (Karsten Dambekalns) Hi. Stan Vassilev | FM wrote: > I suggest we introduce a new construct which will return a string > when passed any identifier to resolve against the current file's use > clauses: > > nameof Symbol\Name; ... > NOTE: As a side effect this means less direct writing of string > function/class names, and less complaints about \ being the escape > characters. Oh, that sounds very good. We do a lot of getComponent($classname) stuff, that would be awesome in that context. Regards, Karsten