Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93589 invoked from network); 19 Sep 2012 06:37:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2012 06:37:47 -0000 Authentication-Results: pb1.pair.com header.from=sebastian.krebs.berlin@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:42630] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/C2-05716-A3869505 for ; Wed, 19 Sep 2012 02:37:46 -0400 Received: by eaao11 with SMTP id o11so176013eaa.29 for ; Tue, 18 Sep 2012 23:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:x-google-sender-delegation:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=V6sR60io04H7HRID/PHhvQOYLUIhg2iavwwk9WZvrNo=; b=1AYRZOUdnlJsolvIiQDhJ4ozFftOVdbg+xtI4Mp2av+0l4eFcu8tSfGVp1puwZFhDs ngf75rkZTq6RLXCrU+kBYB04wpsPAMw+JVRMMkkBIS6MRlyNLcYdVW3/FK6VfBBsW3oG WhHONC0GTuwBTHqqV2VlbW1jDC/DSB6v41zL++Ix6buuewEuKUDDYrm5yDovaBzB6pUz evSh2QfIj9Po7Ecx3Bk/rbIlgWw7GNg9M9xIle6Y4GxO9i16R87oxPpRrueWATc3VM3U 0hwYc3PeQNaGw0AKE8JvdJ8a9227Mkboj901SUzpXjskTDKbsHn9bv7AaELlGXFSZ+XK IX0g== MIME-Version: 1.0 Received: by 10.14.193.129 with SMTP id k1mr2433209een.13.1348036663647; Tue, 18 Sep 2012 23:37:43 -0700 (PDT) Sender: sebastian.krebs.berlin@gmail.com X-Google-Sender-Delegation: sebastian.krebs.berlin@gmail.com Received: by 10.14.176.73 with HTTP; Tue, 18 Sep 2012 23:37:43 -0700 (PDT) In-Reply-To: <50593266.5010802@mrclay.org> References: <50593266.5010802@mrclay.org> Date: Wed, 19 Sep 2012 08:37:43 +0200 X-Google-Sender-Auth: qcZMcKgbSJXVrzq-oHrSlzCn3sQ Message-ID: To: Steve Clay Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b343b207b1cc604ca083ebd Subject: Re: [PHP-DEV] RFC: alternative callback syntax From: krebs.seb@gmail.com (Sebastian Krebs) --047d7b343b207b1cc604ca083ebd Content-Type: text/plain; charset=ISO-8859-1 2012/9/19 Steve Clay > Hello, > > https://wiki.php.net/rfc/**alternative_callback_syntaxis 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 Hi, Beside that I like the idea to get rid of defining callbacks as string (for the same reason I like 'Classname::class' for classes) I don't like, that functions will look like classes with a static property "function" then ... Regards, Sebastian > > -- > http://www.mrclay.org/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --047d7b343b207b1cc604ca083ebd--