[RFC][List/Assoc\unique]
| From: | Ilija Tovilo | Date: | Thu, 01 Dec 2022 18:22:13 +0000 |
| Subject: | [RFC][List/Assoc\unique] | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-119070@lists.php.net to get a copy of this message | ||
Hi everyone
After the discussion on adding a new ARRAY_UNIQUE_IDENTICAL flag has
revealed that most would prefer a new function I've decided to create
an RFC for this.
https://wiki.php.net/rfc/list_assoc_unique
This RFC proposes adding two new functions, List\unique() and
Assoc\unique() as alternatives using strict equality (===) semantics,
the former discarding and the latter preserving keys.
Let me know what you think.
Regards,
Ilija
Side note: I *really* hope the discussion will be about more than just
the namespaces.