Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112771 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64179 invoked from network); 6 Jan 2021 01:51:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jan 2021 01:51:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A740B1804D4 for ; Tue, 5 Jan 2021 17:27:58 -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.8 required=5.0 tests=BAYES_50,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_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-oln040092003062.outbound.protection.outlook.com [40.92.3.62]) (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 ; Tue, 5 Jan 2021 17:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dDZQyd5EGB9JNTVJiwuHgvGmrzgCX57j6DYxM9JF13RWdgRSxwBawxtF4Eoh/3nlE2b4U+UgW2dLRvmDaKe/utn0La3SRBDn54ri59m69M4z0za3iXLfAlzC3GM1lN8atodFKmdN0wTtNOhYiDJwRgEn+9Vw5GzgIIDTYJr2ryla+YUk76IgPKHrWqdc7FJcJKb9jFZhCBPwUhYs3LeV8LB8h00XB9iARtKnZSEBX0zI3RZsZ1RDnHHZ9S65prRd/bYRhNZkWIMVO/916gbgES5ZcG1DOE7cCi7dMmFhUF8L/QB1O0+GQmSPaSi+CZLOST3AbleQHCFzXt0Q1KTd2Q== 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=5v92878PFuEKx26X94TLuvFXE/IJkTlkr7gGpbiQ/FM=; b=TYK1GnOPMrj+NhQI/gUfS6n0cSKAzyrGZB1xpfRxxSk700a4yan1BnzaQbOFPd507Rte6C3mHdlzaOGCS4n+0P6KCrrLnvIMrs0eE9cLrCBCw4C7ML/b4iPiuHYC8me5lBSu4Q81BOT5i/epg4gX/mZzS+RsFwEkyj2LIWEsOBdxtz9PssoSNl8TMDA2Eyk8FsIappqRgvMHrvoEv/CBrVdy3zfirhWttcc8qgBYKqNLzEMlXSZMlmUgUKVvExw0epRfYZ2Uf/RPPLkVGQl1XBB7MvbOEQtxhRLTjG/yHnnnHpnBOQ/qpk5btZgHwKHPFCiu/ukUKrEZIyuCM2b+Ig== 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=5v92878PFuEKx26X94TLuvFXE/IJkTlkr7gGpbiQ/FM=; b=NeijERm1te7KIyblvmEDOvPuD+Jz3BqNcqI707MuatCmEB1XZgVEZi4vCXm5M2xS1w76jAxRGQIInie4BuqgT/efKDCodeaokRKqk8uXb3F5K4GNE74WKzOp3WIH1h7cTpGKmijh/+PtqNYv8fJska5A+gEgDcYJL3XHLnfqUVIwossz6AV+6ZMcgEiHYhJ6kjvVeGrRi8AXGHfOteaK3meBzWP8cK+WPT8A6kFXHK0xv8LFXQeiEWVwlp11T6qJ1LgOcwvpoiyHfq/c50eh+RCelzq1QZwjI0Ronez+Mi8QeTamakC7ZO8ThnInpPBP+e0JZB88I326IVcbiHvbhQ== Received: from CY1NAM02FT027.eop-nam02.prod.protection.outlook.com (10.152.74.55) by CY1NAM02HT156.eop-nam02.prod.protection.outlook.com (10.152.75.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.22; Wed, 6 Jan 2021 01:27:56 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e45::4c) by CY1NAM02FT027.mail.protection.outlook.com (2a01:111:e400:7e45::415) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.22 via Frontend Transport; Wed, 6 Jan 2021 01:27:56 +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.3721.024; Wed, 6 Jan 2021 01:27:56 +0000 To: "internals@lists.php.net" Thread-Topic: Straw poll: Naming for `*any()` and `*all()` on iterables Thread-Index: AQHW1kOROymHHd+jAEaQQL1oN/KEl6oZ5dsN Date: Wed, 6 Jan 2021 01:27:56 +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:55303BEEC872FD8277F3BB3F6414CCE3FBAF8A4F24B3455617F1B8B6FE318133;UpperCasedChecksum:9569D38DEB32B32C8BD20893BE3029483A929C09FF3BCE4D175C3FA32ABE8E21;SizeAsReceived:7060;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [cupeTkhfnpW4UbOacF1EeY0ZBJ4Y/dewteA4+PsuXPbFy45G6NwBolU70Bhq92QG] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: bc77256a-00fc-42b1-6c59-08d8b1e24bcd x-ms-traffictypediagnostic: CY1NAM02HT156: x-ms-exchange-minimumurldomainage: externals.io#1648 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: n6+bel/R31e98QXN8MIj5xQyQZMZGJdr26LScJrA17UnSOlMffwwsleUGcF8mcq44mBMzFwVpYN0YmNFd1K9qdhy7yUJQdrCUj4tJVLiNlXBVhMW09cwlmda6sDAnUls1ld6WEM28t6xUm1FpJtuoYauUqJaUHIH28EMNEvd2dvjpdp+AaA7pJ5YuU4H4Xa1Ya/gcGKBxD99wFHTPlduC55hoL6PWHKcUWKUTHkr6FJ9NjyHpMISeaORmt7LitmVjdeK39doLdGsX6APC1zUFTovcqRjxtuaMsviDWE76jA= x-ms-exchange-antispam-messagedata: yMi+u8XI9/xT6q6Cg2oWQVpnPuOPLDjitLeCPi2wW/idKuRd+Y4JB/wWlDIvLLGdlcFFrpzti3htG+sAgJMTfXSAEM9B0Ef9KQ2DrR+NYh22arJrBvMD6BZ1tysa4S1KtTzCE7WVGJ352ZmMqdRdIMKGfM4TGMPh36DvMZY5x2sRCwVoskkdTyS79ZH2iMqqXbSBO8xwjpC/lYldwGXZ9g== 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: CY1NAM02FT027.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: bc77256a-00fc-42b1-6c59-08d8b1e24bcd X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2021 01:27:56.5164 (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: CY1NAM02HT156 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()` and = `*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 proposes= adding only two functions,=0A= > but more functionality acting on iterables (array|Traversable) may be add= ed in the future,=0A= > making it important to get feedback what people feel the best choice of n= aming pattern would be=0A= > to avoid inconsistency or name changes later on.=0A= > (Many alternatives were suggested in the initial RFC announcement - https= ://externals.io/message/111756)=0A= =0A= I've received more feedback than I expected from voters that were strongly = or moderately=0A= in favor of putting new categories of functionality in namespaces.=0A= =0A= I've started a different straw poll and plan to start voting on that on the= 8th (this will be the last straw poll for iterable function naming for thi= s RFC)=0A= https://wiki.php.net/rfc/any_all_on_iterable_straw_poll_namespace=0A= =0A= 1. I plan to propose additional internal functions for working with iterabl= es if this succeeds,=0A= and would want to be sure this is the best name choice instead of just a= n acceptable name choice going forwards.=0A= 2. Additionally, this has been an opportunity for measuring overall interes= t in adopting namespaces for brand new categories of functionality.=0A= It can be argued that this is a new category of functionality because ex= isting methods work on Traversables (iterator_*) or arrays (array_*), but g= enerally not both.=0A= (classes such as https://www.php.net/manual/en/class.ffi-cdata.php have a= dopted namespaces,=0A= but no global functions in php-src that I'm aware of have adopted namespa= ces yet)=0A= =0A= =0A= Thanks,=0A= - Tyson=