Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111770 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67865 invoked from network); 2 Sep 2020 00:38:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Sep 2020 00:38:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EFA7718050A for ; Tue, 1 Sep 2020 16:42:45 -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-bn8nam12olkn2017.outbound.protection.outlook.com [40.92.21.17]) (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:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IWGXQJXCuve/7eSN8T1XRJra3dKq4LxMHEmxOOH3zRKJZmDrWZoTlf/EsrR/TpB3VNcoyPr7GRcNX0LElU5LAvjaPLKo+bz0pJe8mVy5Z/gXzIwlaKOGLv94WY3JmL74FvhYcQ7Ue2kBFBuvDsEJG9Reta4gCLGUM7j/ln2ichADk277+IPJXisqV+RbWP80L3fpsExRfJ4kZKMjaxdQV8PumEYOf0NnjvbfpGwxahQoBlcDkPY6dL7qguzocIdPok7yPcHH665jEmLKOAnbtrIVxeMG1oBQspSSYtRG1IENQ6TGh0aDef2ylktniXTWYcKippB/tV8gFh3NSu35Rg== 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=F3yAipkjbtO0bNmpSTDnWtyk4stPxpfO4yIXWC9xdW8=; b=TJ/05eWbVi2G6WQbgKgauAGgo81J9pmt4jlNN+giMOdGMvVIDlKNO85N2/fzHbzFQhWI40k0E5MrONuysLzxgEaW/cjUMYbxf2Bx2KhE/wbzHPoYO/UNO5ZjgHC2iFiVFuCfzXZnK0jAqsZ8oUHV2FF233+Z3AJvXOlSyxzgKt/dFXp+IobsgkyzBwilvF5+ZHGwiRTqhIjTr9PSXLr89OL8XL+1+rzRztmuF6re1nXgt5RhYaG/YMLPHTrK1+8iDEpm9LE8ZVnU4kZfv41ArA39y29DLEp5M0EEEno7YpzHV8jD+fC9R0P5lIjub8juQOK/n8jAs8GSHJA2eiGyRA== 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=F3yAipkjbtO0bNmpSTDnWtyk4stPxpfO4yIXWC9xdW8=; b=Shh8fU0gGuzOn0bSjwfeA1WFZqeClzBcu5qQ9p9aPCz0G4BfrHDjPE97pYQ9dGYCdv3QOCL3Ij9RnqSLZX5rE5ioIQii2KkSPUTirOn39zVFT7o3/h7cvAxE5iGstAvXRjTCQc23i0ekg7WYWtWfP4u3sZBaX1pnbOIa/FhoMiCs6WWhsLbulLdd9Bqmv+BRl2/JdE3wg43aFSKlGy6l8p9RcB6h4RVjYc/eTIfz9UD7soo8SP9bWqHEY0JLdoqHvni6yR1HqXN9+HJZH2yyVSizfRipoFmSdmP6JMsKt/i1TpOcE4NmwfTxS+NG+ZjmE/ek+sukPB0F5QRcKM18Lw== Received: from BN8NAM12FT011.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::44) by BN8NAM12HT146.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::425) 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:42:44 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc66::53) by BN8NAM12FT011.mail.protection.outlook.com (2a01:111:e400:fc66::402) 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:42:44 +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:42:44 +0000 To: Mark Randall , "internals@lists.php.net" Thread-Topic: [PHP-DEV] [RFC] Global functions any() and all() on iterables Thread-Index: AQHWf/E9QGyttklhzEGaW5Nz9+rdmqlTY7mAgAAIAQCAAAJogIAAdKSAgABVIQCAADmefw== Date: Tue, 1 Sep 2020 23:42:44 +0000 Message-ID: References: ,<3d828ee2-63dc-448b-b945-b1a8558ea28c@BN8NAM12FT012.eop-nam12.prod.protection.outlook.com> In-Reply-To: <3d828ee2-63dc-448b-b945-b1a8558ea28c@BN8NAM12FT012.eop-nam12.prod.protection.outlook.com> Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:34EB43DB427A8FB820DF88217BC17E17174D4FD23F0255CE7B6D5555BEE79781;UpperCasedChecksum:BABCDE49D01EFED37F757A4DDEF28E025E5EAE4976E2109A53739A43D7332FFA;SizeAsReceived:7557;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [xVm3z8K7SzuKrtEdQY+xzMKAvHuozMTW8Vj5O0+6HwKM6rWpcD9jJWEpcV2gj98x] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 07c75474-b01d-4f3b-c821-08d84ed0b94e x-ms-traffictypediagnostic: BN8NAM12HT146: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OVBGA/YkMT1C2Nj6EKKzsqeAa3cpMZpwNB1zYiFzPVyBgV6+Z2JNyp1m4nFTPyDZKVnBPHAEZGQ9EyyeltWcghk7aK1TRBraq2pcdguXrA3YRBwjRrKE73IHoBNhppjyAzvDmIyGXwgM4YcTCyJEpgjwtpbHPQtbmaRbrAMR0ZMy1dK/aIk8U1r7gATKz80L4cJcN53RpDckKgt3wGjJpw== x-ms-exchange-antispam-messagedata: Ddy5CdrOIcIV/Q18so7Gv5i9c2rWv+B9o3odiwditjqXDumbs4MD030raWDhkANccGV5bHzSTOxNXomlwGGRjOp6jVZoJ38qwNg+PxB8ybWFRp4JC3b5N+PbS/4pZj9FSjrmz0nPq3pKEo5Pp3Mwa6z3v6Ww2nUJF9GAbbsi38HlhBY4TUFEloUBXVtnea+p20/NEORVyPS5ERKOJCYK5Q== 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: BN8NAM12FT011.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 07c75474-b01d-4f3b-c821-08d84ed0b94e X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2020 23:42:44.1457 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT146 Subject: Re: [PHP-DEV] [RFC] Global functions any() and all() on iterables From: tysonandre775@hotmail.com (tyson andre) Hi Mark Randall,=0A= =0A= > Try as we might 4 of us working together couldn't get namespaces =0A= > accepted. I got the feeling that there seems to be an opposition to them = =0A= > on principle, rather than the merits or drawbacks of the RFCs.=0A= > =0A= > Various libraries do use statics for this:=0A= > =0A= > Iterators::all()=0A= =0A= My objection to static methods in any "collection of functions" proposal is= that it becomes impossible to polyfill it.=0A= If php 8.1 were to add Iterators::all(), and php 8.2 were to add Iterators:= :none(),=0A= polyfills would not be able to add `Iterators::none()` to php 8.1 with avai= lable functionality=0A= (aside: technically, there's componere, uopz and runkit7, but I don't think= anyone here would recommend basing a efficient and stable polyfill strateg= y on installing and enabling those)=0A= =0A= For namespaces, it seemed good in principle if writing php from scratch,=0A= but seemed like we'd be in an awkward position=0A= where standard extensions had a mix of global and namespaced functions for = a while,=0A= and it'd take away time from developers and documentation team members to w= ork on the migration to namespaces and updating tests of php-src and PECLs,= =0A= and people may postpone migrating to 9.0 or 10.0 because of unanalyzable co= de using removed legacy names=0A= =0A= - Tyson=