Re: [VOTE] ::class feature to resolve namespaced class names to scalars

From: Date: Thu, 13 Sep 2012 08:27:03 +0000
Subject: Re: [VOTE] ::class feature to resolve namespaced class names to scalars
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-62965@lists.php.net to get a copy of this message
@Dmitry that looks more like a function call, while (IMO) it is more intuitive to consider it like a static property... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 September 2012 10:17, Dmitry Stogov <dmitry@zend.com> wrote: > Hi Ralph, > > I think the syntax is wired. > Instead of classname::class I would prefer something like class(classname). > > Thanks. Dmitry. > > > On 09/11/2012 06: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 > >

« previous php.internals (#62965) next »