Re: [PHP-DEV] [VOTE][RFC] Closure::call()

[email protected] (Levi Morrison)
Newsgroups php.internals
Message-ID <CAFMT4Npbq_tvanY3qmZrp4FxPotD7c_M9ixJ1k_teL2ey3=yow@mail.gmail.com>
On Sun, Aug 17, 2014 at 5:13 PM, Stas Malyshev <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.