Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63155 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82433 invoked from network); 19 Sep 2012 17:16:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2012 17:16:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:39233] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/CC-15057-10EF9505 for ; Wed, 19 Sep 2012 13:16:50 -0400 Received: by lbbgp3 with SMTP id gp3so1348870lbb.29 for ; Wed, 19 Sep 2012 10:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jiIfzCc5WoO4avc2oeNl3cWr0CsBmSduHohbNCEOkLQ=; b=WJASwsff2fvUlSnTUWhTaeCfYg0rKC8Qo2HtM3YWYKM4gT6C222MzQbWpENzlv3kvJ I374ySVBJFmI/RhQBFJ+8OJsW5uDfq4opp+C5E6DZjSCwrWAGADxGzxQi2WuuRIwxx8t bT7CGivVzQadAzIbJ5GL+YysWAGOgRNzREYRCGSYeUEKRRE+G9KpTkUTVlYddVBwmDQX lHp34PyxlJK05C12fAzKOysExTHjvdXpMlqIF8R5H7JSMoTQjBgtHt3PKNd+biylpvvv 9D4HQN4kq9eAJYn0BVDgMHxSt8tPIK67Z+y1iAPq/PjeZ4Wzb9YcWPQ1P3vQuI5eKcfY m1sQ== MIME-Version: 1.0 Received: by 10.112.83.97 with SMTP id p1mr1224680lby.94.1348075006620; Wed, 19 Sep 2012 10:16:46 -0700 (PDT) Received: by 10.112.48.39 with HTTP; Wed, 19 Sep 2012 10:16:46 -0700 (PDT) In-Reply-To: <50593266.5010802@mrclay.org> References: <50593266.5010802@mrclay.org> Date: Wed, 19 Sep 2012 11:16:46 -0600 Message-ID: To: Steve Clay Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC: alternative callback syntax From: morrison.levi@gmail.com (Levi Morrison) On Tue, Sep 18, 2012 at 8:48 PM, Steve Clay 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