[RFC] Add WeakMap
| From: | Nikita Popov | Date: | Mon, 04 Nov 2019 13:22:56 +0000 |
| Subject: | [RFC] Add WeakMap | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-107755@lists.php.net to get a copy of this message | ||
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 WeakMap type for PHP 8:
https://wiki.php.net/rfc/weak_maps
Regards,
Nikita