Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111771 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69914 invoked from network); 2 Sep 2020 00:50:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Sep 2020 00:50:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6043B1804AA for ; Tue, 1 Sep 2020 16:54:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2038.outbound.protection.outlook.com [40.92.21.38]) (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, 1 Sep 2020 16:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FNlGi+/mHYQAut+2SS7SAR7cmAlHDISLZF2h3si8FqVicZv7S5HyIHXvj9tTPg901VOjvd8X/d6JTMyeN5XWpuIj8Nq2Pkx5xrNsnKdmCL9o2YcYnVH+2fARTPsEXrZQuzlFjJ2LB5GHhJoiKWFUrtxciZefQyxzs3EzC3Cu+3YtGm0lUC1uryjkayErM/ii5vgi5BjTPnY7BBzhSys4sZjE8uImyVsdeUxoigGvHFKFFIlL1vfGK2EFA8gAwvbj8/Mhq0s9SVcpZHX32AtePybbm9ZAg7bC5QzZmuHfup7lb/VEPVPmuIpnL85ElObJDvqH0/KKNzYpKpPmvuLe5w== 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=NuMgNgKj9Kn41wWfCKU8Dt4/3oN/cTNJOF+jU+4Mvio=; b=nPYid0oiVhtdWZA/GSyhHdG88KjXNuqmKNNa33KgVF8wtsIIkHifunTe3gOKT/M4SuyxqsYqwdRRtCuiY6C2jeQMpvLvJhMlW2YiBi1guoX+3XMQAVwFrgmB3MsLA+UzQ/ugOFenGyOnPYBn0Q+CV8ghrYp4MQbHMql+nkGte7bx4nvXl1F0cCirGz/6pafsD2aclbBRZpqIGHK3MSuq9qy/Wa6rh6BlAvAlvk+NtaoP7qPcDgz5iR+9hyvTUUH3loJg6oMLH8Ey5M3vMpAVzC/GLfCQ6YqglROmame22Bsf/h8doGUzfvYtxyqiDLYLwfNuBVdHjTbP+v54NyLnkQ== 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=NuMgNgKj9Kn41wWfCKU8Dt4/3oN/cTNJOF+jU+4Mvio=; b=RWw9jwFd1oQQRZeoQeprv8tNVi9MXvLjJnBcGJwyupboQGEJXtX6Vn90Kcy7eIYrDGMghp+YU9WKAxzdU9mgR9mI6WHMksPUphCUUz65MfWVO+r2DzbFaT4euV9nXRiefY6eCcRW43Et8yT+4jdGXpOGBSO/I28LWOxU8YziGkPxPNnG62TgTammfij90Avhou2U6OM2lYp/sNAE0fmfbOzfikfPtD6oF34TpbQKQpvsNKINRGTz2PX4mMLKXFMeUw2vZDTrXPB/penNqdIXU8RYPskWGayy843p133XN1KT4tOWnrytwUC7e/rT/g25RR/On6ZLlIZlW1OVDMdxww== Received: from BN8NAM12FT028.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::50) by BN8NAM12HT164.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.7; Tue, 1 Sep 2020 23:54:50 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc66::51) by BN8NAM12FT028.mail.protection.outlook.com (2a01:111:e400:fc66::319) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.7 via Frontend Transport; Tue, 1 Sep 2020 23:54:50 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f9d1:ed5b:8625:bfb4]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f9d1:ed5b:8625:bfb4%7]) with mapi id 15.20.3348.015; Tue, 1 Sep 2020 23:54:50 +0000 To: Lynn , Nikita Popov CC: PHP internals Thread-Topic: [PHP-DEV] [RFC] Global functions any() and all() on iterables Thread-Index: AQHWf/E9QGyttklhzEGaW5Nz9+rdmqlTY7mAgAAHW4CAAQknOQ== Date: Tue, 1 Sep 2020 23:54: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:ADE70A73FA78B1AAE3763B8D90E652E84729D39879AB282216E67C980BB5F61B;UpperCasedChecksum:8AE639D05C8658D312A7FA7679AE86DFE94E0DD1105D55EE13325BBF7D54FD10;SizeAsReceived:7296;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [byYjyyXyk0Ht2EumL7SU2Ikp4nDR06bLj2YLymObCyVZz5gflEe2sSFaPB/6Dlml] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 8dd28e1b-1bf5-49ed-53db-08d84ed26a19 x-ms-traffictypediagnostic: BN8NAM12HT164: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GJDqv4LKyPCgkm90WDpmuDnFPDd8anGm4xb+h+czRiVao9cL41ioYyVcCbnZdjjLdcNEcjX/CFZ19azlSeS0Xp5d7cL1T+iUyHhsranVOeY1hkhF6iQUPnPmCJQM5Tj2CwLYPPv4pm9z9M8n2V0NokgXXYBZjFPnvwTXk2R29Rqgjkh/HMozBaAGmnqpVhig/kZ+ufg1+v5XK/IdrvLBVA== x-ms-exchange-antispam-messagedata: 2W4Mh85mNVlt8PFKb+mSAfGekE/Cjhkg/+GuaEV6soag0TZ/opkIj+QyzObU0tQxwrgC7XF/YPeZUavlDEbv7R+4If9xB2qZZaLCvUidlTJc3ufe0vJRbwBjzEX5/zQVwHM1REWeulPITAqVrroBx1HofCS/nUg7a0HvpHMTvI4Ak2GYOz20gB2mGKda3ukggsmxE7Jm1loV5a0ctJl7dw== 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: BN8NAM12FT028.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 8dd28e1b-1bf5-49ed-53db-08d84ed26a19 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2020 23:54:50.1889 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT164 Subject: Re: [PHP-DEV] [RFC] Global functions any() and all() on iterables From: tysonandre775@hotmail.com (tyson andre) Hi Lynn and Nikita,=0A= =0A= > To be in line with naming conventions, I would suggest calling these=0A= > iter_any() and iter_all(), using iter_* as the prefix for our future=0A= > additions to the "functions that work on arbitrary iterables" space.=0A= > iterable_any() and iterable_all() would work as well, though are=0A= > unnecessarily verbose.=0A= =0A= I'd also feel like iter_any() could get confused with iterator_apply() for = Traversable=0A= in terms of whether it's shorthand for iterator or iterable when learning t= he language.=0A= =0A= There's been more discussion than I expected on this, arguments for both op= tions, and I'm not sure what the overall sentiment of voters is.=0A= I was considering creating a straw poll on the wiki with 2 questions to gui= de the final version of the RFC/PR:=0A= =0A= 1. Name choice (iterator_all(), iter_all(), or all(), or no interest in add= ing the functionality)=0A= 2. Interest in future RFCs to extend support to keys and entries=0A= =0A= Thanks,=0A= - Tyson=