Re: RFC WeakRefs
| From: | Joe Watkins | Date: | Thu, 17 May 2018 08:25:51 +0000 |
| Subject: | Re: RFC WeakRefs | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102113@lists.php.net to get a copy of this message | ||
Morning Rowan,
I've updated the RFC with a description of the API and comparison to the
current WeakRef API documented by the pecl extension.
Example code can be found in tests also ...
Cheers
Joe
On Thu, May 17, 2018 at 9:36 AM, Rowan Collins <rowan.collins@gmail.com>
wrote:
> On 17 May 2018 07:09:28 BST, Joe Watkins <krakjoe@php.net> wrote:
> >Morning internals,
> >
> >I'd like to raise for discussion
> >https://wiki.php.net/rfc/weakrefs
>
> Hi Joe,
>
> Sounds exciting!
>
> What does this look like from userland? I'm guessing you wrap the object
> you want a weak reference to in a special container? If so, has there been
> any previous discussion of baking it further into the language, e.g. as a
> keyword to wrap, and an implicit unwrap? Obviously something that could be
> revisited later, just curious if it's been considered.
>
> Cheers,
>
> --
> Rowan Collins
> [IMSoP]
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>