Re: [PHP-DEV] [RFC] Add WeakMap

2019-11-05 Thread Benjamin Morel
Hi Nikita, After reading the RFC, I have no comments to make, but I just want to thank you for working on this. I regretted a lot that this wasn't implemented together with WeakReference in PHP 7.4 , as the use cases for WeakReference vs WeakMap are really narr

[PHP-DEV] [RFC] Add WeakMap

2019-11-05 Thread Nikita Popov
Hi internals, This is a follow up to the addition of WeakReference in PHP 7.4. WeakReference is an important primitive, but what people usually really need are weak maps, which can't be implemented on top of WeakReference (at least, not as exposed in PHP). This RFC proposes to add a native WeakMa