Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113117 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96488 invoked from network); 8 Feb 2021 18:36:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Feb 2021 18:36:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DBBB71804E1 for ; Mon, 8 Feb 2021 10:21:37 -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_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10olkn2109.outbound.protection.outlook.com [40.92.40.109]) (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 ; Mon, 8 Feb 2021 10:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nnd2d5oJXKhtCR/gOVXpuMpTbNATb2By/y5nBgiYrPyYm46E5DCCYJHP3TV0dgL7gTt+dTeYZqNYO1sfVr86Ks41CdXdz6XVWCw06fvjI3Qdtfgof4RANJDzFmYpGPyYauyzJnl58YyiyCtKyOo+D3qhT1Gx8HBxgXx0OtaRtSg+3rtmMeLqUW5crWVYchhzcGxCpVsGBr3haAU36HbusfscWFI1zsPl0NSJC5eT/0r5fltzUwun3hnl6rwf6GCREcaAhwxcPzR6GzCc+P9GObvpVcRvfesk0mu6nG2cJv71NHKQ5vdh4S9NkViy15ntVv955A55ozEtyPuthq5Wqw== 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=sLB76tYY2GCkoHI5BGpZoIB2rYBTBqo/nKmYMPrPbC0=; b=RcYZ/BOHk+LqO1sE/6AuBMLW7bQV3fWS5/PTNBDV36zDGayp5FV8/+/C/1zNYryR9lfxDxjohUAdRTEt2/CEO7+PrG3a1QmzyU2LBFSHHeFKoovcq4POvRUWlmIDej46TwIhIadUytMf7P8piTj13TKL6oBzemZfQF+Ntbz+jcdzHj4s4H6me9/HetgjcT9soQRTYbnpYUOdcMpyeJsleAGkXWEySkVnQKfrE/ZwV5+l5M3Iq3IMvHNunheIH8zyxPBhYqb3tyfMmJtfJmT/zbKHp/e32gGb6AOl2KH0Svv5+ehu4LTvWCmC+E0GJ/83lA2vUYc6qMDPWC/wKPGhZA== 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=sLB76tYY2GCkoHI5BGpZoIB2rYBTBqo/nKmYMPrPbC0=; b=dGhlZU9MY1U7St4DFGmpcdQ+AEOWO3U1pSTczLWrZSHNPxHkEmp1R+oShnEmjv1zjfWeAiA3ZBsdNXjZ6aQYLGeU1W7dhrUiPWDAOo6ydBgUqk6Ac8k7cNc0NZbD1CZMgqykIVUae1GCo0KHx9J7/UWr3TpRgXovODk/C6W5z+vJMjRbzJyy27zupfyBQqHpyNPwQqM0RMsWvEGt/uXNhN9M6hfgRzBhgSFXh7h+36ZRNDFoR0BcUhSxxLT36Kl+bzgIlyp8PAv93OrDjhc7kK7kyGIfsB0VBcNMH1u4whlc2D881ZHCQ3bldItQDLH/aJ2QzyFtaHyl158HeM4YqQ== Received: from DM6NAM10FT006.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e86::4d) by DM6NAM10HT186.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e86::311) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Mon, 8 Feb 2021 18:21:36 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e86::44) by DM6NAM10FT006.mail.protection.outlook.com (2a01:111:e400:7e86::270) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Mon, 8 Feb 2021 18:21:36 +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.3825.030; Mon, 8 Feb 2021 18:21:36 +0000 To: Levi Morrison CC: PHP internals Thread-Topic: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables Thread-Index: AQHW/ibG3D0K4gIX3kCegHwWEoc5IqpOXBMAgAAwyFc= Date: Mon, 8 Feb 2021 18:21:36 +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:274E0925CFB2C40E59FF5F50DC10955FBEA2ACD60F3A66604FE599E680EA4DC9;UpperCasedChecksum:A8DE6ACDA116E2C5CF3521147CE8196836F62BF720AF5FA5E5C48D191C26CB75;SizeAsReceived:7033;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [8DD8VUfuKW9c8E9O6KSOdRkXh6nmbZ8h] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: a60a4bd8-59fc-493f-a602-08d8cc5e5edf x-ms-traffictypediagnostic: DM6NAM10HT186: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9GhcU+62epuflX+2mTBRlfjbFqUIW5PJIPDSxTSpb1qqYCpBRzwAgRdEUp1t8PJF0O1R9Kg14OT89zFBmM88udBh3TMWwotfX0xyPNl3Y3/b7CKNJ8+Nz+2384bELVXGQdZ7evQGJrorOlMsSjdOMuSmyMVDd+CHhXHTHvq88LZz9G2mZBDLXUivPWX05f6k2PCjHusF6VvpKYFGv29vCe3yhvGpOsCNJRRzk+Tkq4JglycQTnGndSD2mOSabowxM+MZVAKrULc/WBBI7QQw2ANW0P2JCSvUsKfVA1dIcTiD2tZxKBxNrp2hukYEMlv8ZIpCYIz6ZXLr69uceC0Z9FX451nwNb1YfAomh/yvQEsYsRzrY6zsKZ8y4OKdK4QVGir58TRDL62h9bZC3CEQeJMhL7XU1NufT8RwheZijNs= x-ms-exchange-antispam-messagedata: 8nJ4d1u/GiejeEazrZgQ6HZ8C2qe+urECGiDm4h/UukXRjBRQfZAZD7chcVcJOfjg0DvxTytgkforo+LbMoSHF8DKr4iKDWsv0DH7K2kELDeEFa+gn2UrWAa1JsyD2wHgrvL7wP4ebo7jYqVULdNMA== 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: DM6NAM10FT006.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a60a4bd8-59fc-493f-a602-08d8cc5e5edf X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2021 18:21:36.3192 (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: DM6NAM10HT186 Subject: Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables From: tysonandre775@hotmail.com (tyson andre) Hi Levi Morrison,=0A= =0A= > > Hi internals,=0A= > >=0A= > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and = ends on 2021-02-22.=0A= > >=0A= > > This RFC proposes to add the functions `PHP\iterable\any(iterable $inpu= t, ?callable $callback =3D null): bool` and `PHP\iterable\all(...)`=0A= > > to PHP's standard library's function set, using the namespace preferred= in the previous straw poll.=0A= > >=0A= > > There is a primary vote on whether to add the functions, and a secondar= y vote on the name to use within the `PHP\iterable` namespace.=0A= > >=0A= > > Thanks,=0A= > > - Tyson=0A= > > --=0A= > > PHP Internals - PHP Runtime Development Mailing List=0A= > > To unsubscribe, visit: https://www.php.net/unsub.php=0A= > >=0A= > =0A= > Thanks for the RFC. I have voted no, even though I am very supportive=0A= > of the direction. My objections are:=0A= > - I think the scope is too small. This is introducing a new family of=0A= > functions, but is only proposing two functions. This is too small to=0A= > firmly root in good design and precedence.=0A= =0A= I misread your earlier comment in https://externals.io/message/111756#11176= 4=0A= =0A= My general stance on this is similar to =0A= https://github.com/Danack/RfcCodex/blob/4cb3466e42063be00ece0cdb296c0b1336e= b81c0/rfc_etiquette.md#dont-volunteer-other-people-for-huge-amounts-of-work= =0A= =0A= I have limited time, and this has generated a lot of discussion.=0A= I'm concerned that adding more functionality initially would add questions = like =0A= "Do we really need to add `none()` if we already have `!any()` and=0A= "I voted against this because I don't see the need for `chunk()`, `reversed= ()`, =0A= `filter()`, etc. (or disagree with one of the implementation details)"=0A= =0A= > - I do not like the chosen namespace. This is not as important as the=0A= > previous point, but still factored into my decision as we are still=0A= > very early in choosing namespaces for internals. I don't want to vote=0A= > for something I think is a bad direction when we're this early on.=0A= > =0A= > Again, I am supportive of adding these functions in some form, but I=0A= > very strongly do not believe this RFC is what we should do.=0A= =0A= And you're strongly opposed to the global namespace. https://externals.io/m= essage/112558#112598=0A= =0A= An unrealistic hypothetical worst-case scenario would be where half of vote= rs vote against =0A= any new categories of functions in the global namespace, and half of voters= vote against=0A= any new categories of functions outside of the global namespace, and nothin= g achieves a 2/3 majority=0A= in php 8.1.=0A= =0A= > I tried to collaborate with Tyson more on these points but either we=0A= > mis-communicated or he wasn't interested. In any case, it's up for a=0A= > vote so I choose "no."=0A= =0A= I disagreed. =0A= My decision was based on https://wiki.php.net/rfc/any_all_on_iterable_straw= _poll_namespace#vote=0A= I strongly feel that this should be based on feedback from voters as a whol= e when we're this early in namespacing discussions,=0A= or the namespacing discussion would continue as "maybe this was the wrong c= hoice of namespace."=0A= =0A= Thanks,=0A= - Tyson=0A=