Re: RFC: alternative callback syntax

From: Date: Wed, 19 Sep 2012 17:16:46 +0000
Subject: Re: RFC: alternative callback syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-63155@lists.php.net to get a copy of this message
On Tue, Sep 18, 2012 at 8:48 PM, Steve Clay <steve@mrclay.org> wrote: > > Hello, > > https://wiki.php.net/rfc/alternative_callback_syntax is a > proposal for a simple alternative syntax for creating function callbacks. > > The basics: Given a function/method call, replace the argument list with > "::function". PHP would evaluate this as a callback for the function/method, fully > resolving any class/function names according to the current namespace and any use statements. > > In my opinion this syntax would aid readability and benefit users via fewer typos and namespace > errors, and via (hopefully) better IDE support. > > > I welcome any feedback. I don't have adequate C skills to offer a patch at the moment, but > I generally read everything I can get my hands on about how PHP features are implemented and am not > afraid to jump in. > > Thanks for your time. > > P.S. I've kicked around this idea around for awhile, but Ralph Schindler's idea for > using ::keyword provided a better path to BC, and more attractive/meaningful syntax. > > P.P.S. I'm unaware if it's customary to throttle the release of RFCs, so I apologize > for hogging any attention away from those under discussion. > > Steve Clay > -- > http://www.mrclay.org/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > I do not like this proposal. The syntax is ugly and not intuitive. We need a different way to accomplish this. Levi Morrison

« previous php.internals (#63155) next »