Re: closures questions

From: Date: Thu, 24 Jul 2008 10:05:06 +0000
Subject: Re: closures questions
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-39261@lists.php.net to get a copy of this message
On 24.07.2008, at 11:10, Christian Seiler wrote:
Personally, I don't care whether a object-to-string cast is present or not.
So lets remove it?
I don't think Closure can be meaningfully exported. Can we prohibit it?
Unfortunately, currently not, see the var_export code.
I think we can make working clone there - just copy all data, etc.
Perhaps. But I'd recommend this should be postponed, as there are quite a few subtleties regarding semantics of bound variables involved. Should there seem to be a strong need for cloning closures by the community, this can always be implemented in a future PHP version. IMHO.
I agree that both are not super high priority. So lets keep them for 5.4/6.0, ok? regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#39261) next »