Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83704 invoked from network); 13 Sep 2012 21:01:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2012 21:01:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.214.170 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:53431] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/89-31416-89942505 for ; Thu, 13 Sep 2012 17:01:12 -0400 Received: by mail-ob0-f170.google.com with SMTP id wc18so5679133obb.29 for ; Thu, 13 Sep 2012 14:01:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=8oDy1clQq3vDkJWK4JTSGzZXEqUNig0WnS3AHAASGII=; b=eeJxHMfXaXM56bop+grbh0YSYw8aSJqNcr80i8r7M4HIlGr1Fz7JUHMWq7JBnC8iJa FwPyzjhRc0h+D+hcUbKdYrWtBe5K+J9+o7731kFJrMLFm2+4FrS3W4xWFhSP+8JKo/x4 /lBFemy5pRSx3bM2rGISLSZWURYHW5Zy4SjqBnhSVU4W2ku2RVPgtdCqysQYI2I5VWLz BFYDaYRquhRGVrWADLNa1AylVR5WShyck5uj/04dCnQkVLP3H0/B20ZFjdbhSsuU7DKz uQN+RC4eSzNscN+5jZKK+5IpJKmsTQnPGAGyKMUZ9J8GEyGy7XjEmCjYqmt1TNJrqX2P NC4A== Received: by 10.60.7.197 with SMTP id l5mr686519oea.33.1347570072108; Thu, 13 Sep 2012 14:01:12 -0700 (PDT) Received: from Ralphs-Mac-Pro.local (ip174-73-14-247.no.no.cox.net. [174.73.14.247]) by mx.google.com with ESMTPS id 2sm25102970obi.20.2012.09.13.14.01.11 (version=SSLv3 cipher=OTHER); Thu, 13 Sep 2012 14:01:11 -0700 (PDT) Message-ID: <50524997.4070907@ralphschindler.com> Date: Thu, 13 Sep 2012 16:01:11 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <504F4D33.4070306@ralphschindler.com> <5051968E.7030908@zend.com> <553F2A43-1A28-4AB5-9D6F-6B5ADFC420DB@strojny.net> <505247A2.7070109@sugarcrm.com> In-Reply-To: <505247A2.7070109@sugarcrm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmi/g0UVVNVUdgkDeUpYe+nutwTXES2gBZuecscTrdQKmnMJ1VEDg1yanqsd1e3jeomuhDk Subject: Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars From: ralph@ralphschindler.com (Ralph Schindler) >> Perhaps get_class_fqn(string:ClassName) ? > > Do you propose a function? Because I don't see how it can work as > function - namespace resolution is compile-time. I personally think we should keep resolutions as much to compile time as possible. Your suggestion implies that we now have either a function and a new keyword, or two new keywords: get_class_fqn, and ClassName. I like that ::class is basically 7 chars for a FQ name resolution at compile time, after all, point of this is that we can leverage namespacing in scalars/string when referring to classes as strings. -ralph