Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62978 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33593 invoked from network); 13 Sep 2012 14:02:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2012 14:02:41 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:56077] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/50-31416-087E1505 for ; Thu, 13 Sep 2012 10:02:40 -0400 Received: by iamm10 with SMTP id m10so2482293iam.29 for ; Thu, 13 Sep 2012 07:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WxguSQiIM1aDC9el6WVdPxuKQYBcZ6axk8SCYFax4nk=; b=HEsXF4RRbFXWo6fnStEgxemuwNxLEALUO27T5F1jVpRSTQ99Xz5ippAhNNlqBZquMi h9V5tVkeaqrr+9XbZhWkW+kOsy2Fc4zaMFy/Fy61H58GIcqnwIKXnfkUA+SwSgM6RRWQ 6U2lKK9dpsK2tbMQXiGnZkjJ/d03PT6VkaEkEL5pyorXDjL3sgmLzlKCRSqfusTgBX9b sDvcjF/Ylqw9wcHj54lhzW9Emsemwrfq9KyhT4g/1OddlDzAVTw9+wCip8/GItdDfnto qJLOyeiRM7+TRu0nl6+Y9nVhcpE1dU2ABz9pK5sg04LnZkE/+pAPPElHmY+5jVZu/iw2 mxDA== Received: by 10.50.51.232 with SMTP id n8mr2661133igo.68.1347544956643; Thu, 13 Sep 2012 07:02:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.69.133 with HTTP; Thu, 13 Sep 2012 07:02:16 -0700 (PDT) In-Reply-To: References: <504F4D33.4070306@ralphschindler.com> Date: Thu, 13 Sep 2012 16:02:16 +0200 Message-ID: To: Jan Dolecek Cc: Ralph Schindler , internals Content-Type: multipart/alternative; boundary=14dae934055d75a8e704c995c2ef Subject: Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars From: ocramius@gmail.com (Marco Pivetta) --14dae934055d75a8e704c995c2ef Content-Type: text/plain; charset=UTF-8 Hi JD, On 13 September 2012 15:57, Jan Dolecek wrote: > I'm not able to try it myself at the moment and it's not described in the > RFC, so I'd like to ask: > > Will it invoke autoloading, if the class does not exist (yet)? > > I think this should be considered. If so, it's not good as it kills > lazy-loading. If not so, it we may get errors later than expected. > I think these problems deserve discussion. (I'd prefer to keep > lazy-loading, since existence of class gets validated by IDE) > > Regards, > JD > > > On Tue, Sep 11, 2012 at 4:39 PM, Ralph Schindler > wrote: > > > Hi internals! > > > > The ::class resolution proposal had significant discussion in April and > > I've updated the patch to address issues that came up then. At this > point, > > I've gotten some positive feedback from various places and feel its time > to > > open it up for a vote to internals. > > > > RFC: https://wiki.php.net/rfc/**class_name_scalars#vote< > https://wiki.php.net/rfc/class_name_scalars#vote> > > > > PR: https://github.com/php/php-**src/pull/187< > https://github.com/php/php-src/pull/187> > > > > Thanks, > > Ralph > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > I don't think autoloading is needed here, since the FQCN can be resolved without it (exactly like with type hinting). Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com --14dae934055d75a8e704c995c2ef--