Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70549 invoked from network); 4 Oct 2015 10:41:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2015 10:41:28 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.172 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.212.172 mail-wi0-f172.google.com Received: from [209.85.212.172] ([209.85.212.172:32978] helo=mail-wi0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/96-31315-65201165 for ; Sun, 04 Oct 2015 06:41:26 -0400 Received: by wiclk2 with SMTP id lk2so84018518wic.0 for ; Sun, 04 Oct 2015 03:41:23 -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=7PK7mx/V6eqjb8+swusy9guAc2Qxundh2viZrdNa7Lk=; b=lFHHCXyMJgbCsUdE18bREQZT/p4+pOwWRmK+7kmbZUznrSAEt+5u/OoKx8AXJ0OFn6 Gh+NB/0EDLAzdlk+B9vtH/gZBdbtoaAbKzihZUciGR+el47Qt9UsrlrVASYdA08nGDPN D+0ngiQsVYabc88/UF6UeIMbzKNy/Log+TTvcMgZyCd8ehsTzOggMIo2aKzP+DwEdJl2 wbClAqO4ChtlAW9+fvU/BxjGJzB+hZ3RP6v+KWugccSCvPV3M1kulGJNqbbixgFT/U51 1/2cGDasLK1hjEBBoMGJvhoIRWJ02BVmGlVWr87Cz2+xlmzs9NZlm4pRSkac9hvmEMBG IDsw== MIME-Version: 1.0 X-Received: by 10.194.221.4 with SMTP id qa4mr27302402wjc.145.1443955283598; Sun, 04 Oct 2015 03:41:23 -0700 (PDT) Received: by 10.27.12.216 with HTTP; Sun, 4 Oct 2015 03:41:23 -0700 (PDT) Received: by 10.27.12.216 with HTTP; Sun, 4 Oct 2015 03:41:23 -0700 (PDT) In-Reply-To: References: Date: Sun, 4 Oct 2015 07:41:23 -0300 Message-ID: To: Dan Ackroyd Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11c3ae5ec023260521450980 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION]: Closure from callable From: ocramius@gmail.com (Marco Pivetta) --001a11c3ae5ec023260521450980 Content-Type: text/plain; charset=UTF-8 As mentioned already by Andrea: why not just a named constructor on the closure class, like `Closure::fromCallable(callable $callable)`? Much simpler, easier to find, etc etc... On Sep 29, 2015 11:23, "Dan Ackroyd" wrote: > Hello internals, > > I'd like to start a discussion of a proposal to allow closures to be > created in user-land without having to use a whole lot of reflection > code. > > https://wiki.php.net/rfc/closurefromcallable > > Thanks to Joe and Bob for the assistance in the patch. > > cheers > Dan > Ack > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c3ae5ec023260521450980--