Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76623 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73890 invoked from network); 17 Aug 2014 23:40:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2014 23:40:28 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.51 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.51 mail-oa0-f51.google.com Received: from [209.85.219.51] ([209.85.219.51:43952] helo=mail-oa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/D6-28428-B6D31F35 for ; Sun, 17 Aug 2014 19:40:27 -0400 Received: by mail-oa0-f51.google.com with SMTP id o6so3519366oag.24 for ; Sun, 17 Aug 2014 16:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=1MUIV8CiMK9aoaTrPo0gEJQcp2ZMWV4f+0FRxwnB1/M=; b=q+BXWThOR/HH+9x1kYdpSil6U11oGbnRogWbXxlOC2Ca/OMjcmjCHL756j0UkUzfkI 4BLAh3aHNyOevP5SWwLWh3Y14k7k1eXyPIB3J758ik5mPGYGJs9Z9mhr9JOPg451uw2X KcH/ZnsgU3wHzuE2OUBfoyVqW7DT2wwA7JmUAB2oNrLzVEG2rqAf7Smlq19IDSBTlIfK TMnVk9/PWEN2EwtRKXrp0fiTLbhKFDw5MyMVmKwN6LggTGv5O2JilwzGCXae3Qt+Ep95 TsNu6Etw545V3te/LpmJt1ZNxqnfqta7VEFkEk6qABinJ1UBfgM0SoriSaH5SeHOu0HK tEgQ== MIME-Version: 1.0 X-Received: by 10.182.20.177 with SMTP id o17mr33716074obe.59.1408318824525; Sun, 17 Aug 2014 16:40:24 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.157.231 with HTTP; Sun, 17 Aug 2014 16:40:24 -0700 (PDT) In-Reply-To: <53F1372B.9080207@sugarcrm.com> References: <235C617B-25E1-4185-A784-38EF1D7BFFDC@ajf.me> <38FC0B11-5E15-43E9-8467-347359970D46@ajf.me> <53F1372B.9080207@sugarcrm.com> Date: Sun, 17 Aug 2014 17:40:24 -0600 X-Google-Sender-Auth: udmPxRpDBH62U9GEDDSIVELEMIU Message-ID: To: Stas Malyshev Cc: Andrea Faulds , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE][RFC] Closure::call() From: levim@php.net (Levi Morrison) On Sun, Aug 17, 2014 at 5:13 PM, Stas Malyshev wrote: > Hi! > >> It does, but maybe you missed it. Under the Proposal section: >> >>> To solve this, we relax the current invariant of scoped closures >>> having to be bound, and add a new parameter to bind(To) to produce >>> an unbound, scoped closure, like so: > > Indeed, I missed it - I was looking for bindTo. I think it should be > made more prominent, and I'm not sure what closure that is not static, > but does not have a bound object, means. What happens if you call it? It > sounds a bit strange concept - why would you need a closure that is not > static, but is not bound to any object? Hence the vote was cancelled while it is reworked.