Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112913 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3985 invoked from network); 17 Jan 2021 15:06:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jan 2021 15:06:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 34D421804CF for ; Sun, 17 Jan 2021 06:45:53 -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.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08olkn2044.outbound.protection.outlook.com [40.92.47.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 17 Jan 2021 06:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rng8tObW27oTb7N0Ta+UhO2DlVSxcfcS60jur2ljkE8x2Yan58XrG7QXyvV3DMPEdJ7sHNRiw4Dt7A//CSBaA0iSAydvuNEQrob3gAI/zZnunK45bxJSXxnHKvWxdM1zyRuZTFGnRo041Gb9iCDxd4BfmJ38NOI6xBA/w2DZClGR4KlJBgrmuaEYRbEUtwTFeFaNYjI4yJl6CqKUyw0tFTxXZ/Gkl4E7+EoX2Jj/kYMxYZcN5ZBf1//2Cx/NzI3qyFTBNkoOs59rlHhxXdgA9hdSCTG1rQv4bZZyFm8SVI4zO/k1HFXUnsL9Z8y2fRIqX0ukuqLtyKImvnw6z6tbYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W3oYxB9lbDC/xO6tNlkpnhE4i99nEzQyQ2l007RuBlw=; b=b4vYdu2GdQlz+e7zgtpgrTggrBhJGeGpg5VmryMTFiZ7IdFPO4j0KyI7/cCIBu1oWjtDBOA/kBMoHbBpG5wBoxRo5YS3I9+JHGaBcu5dti5GeIXd+3Gqah0TF1myaAjKccgwiAUcM5cruSf/CrMe6wlsh7Nbo6NX/xghz2LkK4PUD5fl1s+0yhKUap6W4Ofa/WagkZRQ/lEMz4qh39I0Ppu6f7SPL2ZCuc6HM7KF/VvCfWDNNzhUcH7rvPpdoqDzWFfzUAjl0Zk6CUbOpVpU6vZ/U+SsteXhAkcizT7BY7TJs6MGt14Mch2gLm/Bb+FFTlHTSQMwD1nC/5Xfs1zrWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W3oYxB9lbDC/xO6tNlkpnhE4i99nEzQyQ2l007RuBlw=; b=RUiGnxeE99qeyCioogYXkZ4KcgFjMfYdIVVFU7hgx3gpBSIUSR062Q8gey9cmvuglI8Vh/jaKTPxEvk9665gnvbGF31W1sMGWGs/kDMVGQ8xb3LWRVcJ6yXiPfUkAGAEbBiKfjvs9nlmDoggZjY2+3v/5xLZNnXkwwkPzCvEq4BjoH8iiHTxk/9+lFNCe8VVJigf6wZuVNFqwiVM/+cK5qp/k4tjnmkKoyFoBiRWoHFm4vpCBy4yK9H06eIQ8OAolcTroAkD0eLPZRybYOI+jRXs/bD028EFq/AGw0Bbd8SGa6wKoOeoX62JxHPfrodGxvzaIBNMovQNniCkJ1e1LA== Received: from BN8NAM04FT054.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7e85::41) by BN8NAM04HT028.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7e85::450) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sun, 17 Jan 2021 14:45:51 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e85::4d) by BN8NAM04FT054.mail.protection.outlook.com (2a01:111:e400:7e85::62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Sun, 17 Jan 2021 14:45:51 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::b4c4:dc11:5337:821d]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::b4c4:dc11:5337:821d%4]) with mapi id 15.20.3763.012; Sun, 17 Jan 2021 14:45:50 +0000 To: "internals@lists.php.net" Thread-Topic: Straw poll: Naming for `*any()` and `*all()` on iterables Thread-Index: AQHW1kOROymHHd+jAEaQQL1oN/KEl6ohIlm2gArs7sk= Date: Sun, 17 Jan 2021 14:45:50 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:08884013704178FE23384C875D44C1DE99F961B33801AC5C70E76354FC359AB2;UpperCasedChecksum:F18C7FAB87665F3715660EDA06D2C4183CBB5D70965692CD722BEE7B560AF8CE;SizeAsReceived:7166;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [dV71CxICe3AScRBzLZ7ZOm783t99wl6Df0HkjHsqof8uE1EIFRl3RmvuPOe7oSn7] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: ee2527b4-1f8c-4bd8-8db9-08d8baf695a4 x-ms-traffictypediagnostic: BN8NAM04HT028: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7JQ+CnY1iqdUJZW+kVxK8MVels8C1MZB4FbLaem08Cn/1q1ZoW7FrK+w16EBJ8zS2FHdl3LHucCRJ/beskoE80IlLS907mB8O1kGH/+0fV5Ht9cBH9LjNTkrrGAASiYlJOlQ23g/kkCjW5TWkETFtM+jkwfWdYv8U5NDNzhSU4LrQe4M8sIdGHciR/DzSjJ06afsNFTyR18OlBXwyDmcjmLFNvmuicVulSpew70rj7cIxyyOkTT73jTZ7tuRPMiqqc9UU1dUUL/JBdXa5vTr4BR/k447OC2SHWbI3sSzWdI= x-ms-exchange-antispam-messagedata: ADvPsky2/Q8W5JURu8CmfeFACflpIgjTHdFeweCurc0TfsGPPfItNjIYWHvztKKNCLTpIqMUawxAZtS30PUe1ytg4pF8QLRgLznapcEs1rz5cEJ9PMvL6jkDVPGODK+v0GT/1trFQHjYECPDMEfhwo2g003EODNFaRkQewqLGWepNcQrXGhbxZPpUrHsQC+ji75ori+uWrtHrrNevEAmjA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN8NAM04FT054.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: ee2527b4-1f8c-4bd8-8db9-08d8baf695a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2021 14:45:50.7366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM04HT028 Subject: Re: Straw poll: Naming for `*any()` and `*all()` on iterables From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= > > I've created a straw poll for the naming pattern to use for `*any()` an= d `*all()` on iterables.=0A= > > https://wiki.php.net/rfc/any_all_on_iterable_straw_poll=0A= > > =0A= > > Background: The RFC https://wiki.php.net/rfc/any_all_on_iterable propos= es adding only two functions,=0A= > > but more functionality acting on iterables (array|Traversable) may be a= dded in the future,=0A= > > making it important to get feedback what people feel the best choice of= naming pattern would be=0A= > > to avoid inconsistency or name changes later on.=0A= > > (Many alternatives were suggested in the initial RFC announcement - htt= ps://externals.io/message/111756)=0A= > =0A= > > From Nikita Popov,=0A= > > Using just the SPL namespace (that is, SPL\any) makes the SPL namespace= a=0A= > > dumping ground for everything, as you said. Once you introduce an=0A= > > additional meaningful namespace in the form of SPL\iterable\any, you ar= e=0A= > > better off either dropping the SPL part and arriving at iterable\any, o= r=0A= > > replacing SPL with something more sensible and arriving at PHP\iterable= \any.=0A= > >=0A= > > TBH I think Tyson's original approach of not including namespaces as a= =0A= > > possibility was the right one. We clearly still don't have any consensu= s on=0A= > > how to structure namespaces in PHP extensions and it doesn't seem like = a=0A= > > question that should be resolved as a footnote of another RFC. There ha= ve=0A= > > been multiple RFCs one the topic, and none of them reached anything eve= n=0A= > > approaching a consensus.=0A= > =0A= > I'm planning to revise https://wiki.php.net/rfc/any_all_on_iterable_straw= _poll_namespace=0A= > due to feedback that the proposed namespace choices differs from prior pr= oposals =0A= > such as https://wiki.php.net/rfc/php_namespace_policy and perceived inter= est in options such as PHP\SubNS\=0A= > =0A= > Although my original intent was to add `*any*()` and `*all*()` to the lan= guage=0A= > rather than work on PHP namespace policy,=0A= > I still feel obligated to gather feedback for this specific use case=0A= > since this discussion may come up in future RFCs adding new categories of= functionality.=0A= > =0A= > There'd be an unmanageable amount of options to vote among if I poll on t= he combination of namespace and name,=0A= > which is even more unpleasant since we currently don't have a widget dedi= cated to STV(Single Transferrable Vote) polls (that I know of),=0A= > just forms that must be submitted individually.=0A= > (e.g. is X\iter\any_value() preferable over X\iterable_any())=0A= > =0A= > - Additionally, we haven't yet determined if there's a consensus on names= paces.=0A= > =0A= > My plan is to start a different STV straw poll, on=0A= > =0A= > - no namespace: iterable_any()/iterable_all()=0A= > - iter\ (conflicts with nikic/iter but was also suggested by Nikita)=0A= > - iterable\ (see below note)=0A= > - PHP\ (This deliberately uses uppercase, see https://www.php.net/manual/= en/language.namespaces.rationale.php)=0A= > - PHP\iter\=0A= > - PHP\iterable\ (see below note)=0A= > - Ext\Spl\, as suggested in https://wiki.php.net/rfc/php_namespace_policy= =0A= > - Spl\=0A= > - Spl\iter\=0A= > - Spl\iterable\ (see below note)=0A= > =0A= > And if there's a clear preference for a namespace, start a second STV str= aw poll between iterable_any(), NS\any(), NS\any_value, NS\iterable_any(), = for the preferred namespace.=0A= =0A= I've updated https://wiki.php.net/rfc/any_all_on_iterable_straw_poll_namesp= ace to be a vote on the namespace choice rather than only Spl\ options.=0A= I plan to start voting on that straw poll in a few days, with the vote left= open for 2 weeks.=0A= =0A= If there's a clear preference for a namespace, I plan to start a second STV= straw poll between iterable_any(), NS\any(), NS\any_value, and NS\iterable= _any() (if appropriate), for the preferred namespace.=0A= =0A= Thanks,=0A= - Tyson=0A=