Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63134 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24091 invoked from network); 19 Sep 2012 13:26:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2012 13:26:15 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.12.24 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.12.24 host1.trois-doubles.net Linux 2.6 Received: from [95.130.12.24] ([95.130.12.24:58496] helo=host1.trois-doubles.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/21-15057-4F7C9505 for ; Wed, 19 Sep 2012 09:26:13 -0400 Received: from Hwhost2.local (70-68.78-83.cust.bluewin.ch [83.78.68.70]) by host1.trois-doubles.net (Postfix) with ESMTPA id B27FB208B06 for ; Wed, 19 Sep 2012 15:26:08 +0200 (CEST) Message-ID: <5059C7F0.8080808@hoa-project.net> Date: Wed, 19 Sep 2012 15:26:08 +0200 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: <50593266.5010802@mrclay.org> <5059C570.6000203@mrclay.org> In-Reply-To: <5059C570.6000203@mrclay.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: alternative callback syntax From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 19/09/12 15:15, Steve Clay wrote: > On 9/19/12 2:37 AM, Sebastian Krebs wrote: >> 2012/9/19 Steve Clay > >>> https://wiki.php.net/rfc/__alternative_callback_syntax > >> reason I like 'Classname::class' for classes) I don't like, that >> functions will look like >> classes with a static property "function" then ... > > FWIW, here are the syntaxes I've considered: > > func_name; // parser can't distinguish from constant > > callablefor func_name; // adds reserved word, token > > func_name::callable; // adds reserved word callable is already a reserved word (T_CALLABLE). > > func_name::function; // in RFC > > Steve -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/