Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119070 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31326 invoked from network); 1 Dec 2022 18:22:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Dec 2022 18:22:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1F35F1804FF for ; Thu, 1 Dec 2022 10:22:26 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 1 Dec 2022 10:22:25 -0800 (PST) Received: by mail-pl1-f176.google.com with SMTP id k7so2422780pll.6 for ; Thu, 01 Dec 2022 10:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3ku9onYfh4PWdWdpDx4F6LFo8FGsz+04Js/0v3TyGJI=; b=mkPg17j6gCtsuZTxR8CJLCJf8nxq98D9eEuhO+2MmMtsdBqlSNnLdMLlMj0lzo+o5/ YsTeTCUyrh5qQ1g7ZoQ+jNA0zb7wy8Iif4TVGPHb55DjzlFKNm0Sv+wB2H9VEq0mo2/B 4FQc/n+BlyjBYuoP5ilR5ZSfOFScwIvN/BVih1RmKFdv1rRx4L/uinRkB2/w8eqwD++J Sgh3gaCgkaYjE0cx/DMWlrLBjpTzk5yMrsD5tr1rg2HzJYQJZxe/Ahccl2+pP1WYN0mx O4WIK8hAfpnY3ptb3Za82vqOX+7EwNAq8CrMiAsABr1mO79R9wzhBzkiF9Ak7AlrlKtd tMLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3ku9onYfh4PWdWdpDx4F6LFo8FGsz+04Js/0v3TyGJI=; b=xBWX1vJ2Of9CBtodrEDDAbppPxO2/l1cTxCuRSBctenbt2Gdux+5gDrIKKQkYxiYhC 9V8WDWjK+5E5ssjoGypNb7I/JKWH34uTBjEBtsif/3QP5lBy0bJhb06HU5YVbhEZt/bb zFgeBVu4JOELpFEM0TX+1htlp2Ka+ZkHwZ1C3ru03sRKDDnas7/yEinFx6hKjdcKUOFk bJS05Mvj7fBVRlRthquNEQJOZrXFWi3TDkXG1zOPhN+pBZllFtRuzY06nLfKsHKncsfb wFMASv2+OH6aTvtRNsG2zmwBYVawgjJAIGk5Y+9CdCaCat5uyHNKRitwxj1KtuI3zBgQ iZRA== X-Gm-Message-State: ANoB5pnl5mzUAfIOZfSjgkTicmNjIqFfIUz7e+DQR/8smzc0gi38fj1o Zswip7CJw0SZsT798r9XA3tsNzC3RVlboRu69j2pMHmtsEA= X-Google-Smtp-Source: AA0mqf62TN22BWkIqitSQbRFzYnQD2OnhuSKQjxrzzPlHGQ41e0REhqsbtyb8l8YOaYjTu+fhgEQ7OB939bHn8Ge7aQ= X-Received: by 2002:a17:902:d547:b0:189:5c50:ce5 with SMTP id z7-20020a170902d54700b001895c500ce5mr37756301plf.14.1669918944316; Thu, 01 Dec 2022 10:22:24 -0800 (PST) MIME-Version: 1.0 Date: Thu, 1 Dec 2022 19:22:13 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: [RFC][List/Assoc\unique] From: tovilo.ilija@gmail.com (Ilija Tovilo) 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.