Re: weak references
| From: | Ferenc Kovacs | Date: | Mon, 18 Jul 2011 08:15:28 +0000 |
| Subject: | Re: weak references | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54022@lists.php.net to get a copy of this message | ||
>> I hope this will be more clear once the RFC is complete. I will then start
>> a
>> separate thread for official discussion.
>
> All I wanted was to point out that introducing such a thing might overly
> complicate things for users not familiar with the concept...as the java guy
> pointed out in his intro, even java-people don't know about the feature,
> even though it's been around for 10 years
> (http://weblogs.java.net/blog/2006/05/04/understanding-weak-references).
>
I think that having to know and care about refcounts and zvals are
more complicated than having an Spl class, which can hold a reference
for a variable what can be destroyed to free memory.
and there is a chance that people are familiar with the Weak
references from other languages, while the zval approach only familiar
for those that knows about php internals.
so I think that from the userland POV, weak references are easier to grasp.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu