Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112570 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31474 invoked from network); 21 Dec 2020 00:24:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Dec 2020 00:24:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 702CE1804B1 for ; Sun, 20 Dec 2020 15:56:31 -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 NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2067.outbound.protection.outlook.com [40.92.18.67]) (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, 20 Dec 2020 15:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HwZh/a5xlNGXphr/kSA34gJoexpYTOftpFpzVsnMgu5N63DG3BimVMd0mbcDmudA8xryqoSivAe/ZocZHAHhfxaJdIe7q6ZI5AxdiHFtncFrDFhQX4oKRlEHinwpe/jLIMctWOoybfGZvxSwGqfgCYABA/maYMmyv/yJYQaoeatX5lGO2cou7Jxv9R+ZnJ9kCHv1AxlhWabIN7fXNnbkUOC0dajU8A+X/arGGJBz6JKKeYJ+wtEHxF186KSIIZwjI+Rk7FULRXoMcaZFb1eEFmV9m5Pe+7ateH3zqhsksSdBt44fymJEX9u1rhADkHRbRlabgKWY2cuH7K8b/SCSng== 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=6f9vbf142qtGxFXHCPp57pW9RPOK5ghlzaOy297e7yM=; b=oWRHTtSUhO6z6sffdzRkMHlYuezwZsh0H/7BXImE3DKcvNcblLNDAPnjT0Reph1a0B9VfM2JGAB0Nl1YpsgodKbip5eOmADLhtTq8NPcvlQ1NJ1V0P+CKYBT0WWEVXBciL1uCIMBBkP4msXLT4nCoppPlwcaj378IXfQW9I2BtPXJcKdGEm6UckSkfBWZeNI5DswcbW24ufmJi5kPAD1L8a/dWkNRr8L+eVpDuVUiAxDB1NSOdSaTl8gZmFV4WwKamRhlo5n22ujjbPOY+oUUOnnPLr7AADO+d1jiuFYriCCipSN4xRJP641emkhHvnTrX9FeEr2XqG30RYuPvUt2A== 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=6f9vbf142qtGxFXHCPp57pW9RPOK5ghlzaOy297e7yM=; b=NgCDna7t1LstwEXksfC2RLXSWH5Y6KtUHz7SrtTWTVyiRlsjSqZ01WnuglsKoMZHB/g3+eomWJCnhBzhfcCUu3flqS4+Nvhf4jY1SPRorl2eWOCLhJLe764dNokyKrB3RvtD2EX7+BB5z+2hF0Xv6B8yt9JYx6j+tOZrQpbMwdjOWTdruH6dwMnT47QVYvP3n/738IDHSvOccMrZtxxA6rJMR99vFBcDex8FNVyJsMCq+LAxgAvlzb87vc3AF/Jh1gqAl090QDwgxHTjHwv48jHalwy7dmSmJWEceOC/K1xrqrmumjAvO00//zAPSaDwErC/fLZuLR+bWAR3ai8Chw== Received: from DM6NAM11FT026.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::48) by DM6NAM11HT161.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Sun, 20 Dec 2020 23:56:29 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc4d::51) by DM6NAM11FT026.mail.protection.outlook.com (2a01:111:e400:fc4d::161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25 via Frontend Transport; Sun, 20 Dec 2020 23:56:29 +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.3676.033; Sun, 20 Dec 2020 23:56:29 +0000 To: Mark Randall , "internals@lists.php.net" Thread-Topic: [PHP-DEV] Re: Straw poll: Naming for `*any()` and `*all()` on iterables Thread-Index: AQHW1kOROymHHd+jAEaQQL1oN/KEl6oAnf6AgAAKE+w= Date: Sun, 20 Dec 2020 23:56:29 +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:15DC8B38219E1D2D3A9AD247A473A6106DAD24C2FC7060E0902411FF25437A0C;UpperCasedChecksum:A49E0B0F60BAF29911F1679CDFE638E6158B8B0DDD9DD51152C9275F5432CF0B;SizeAsReceived:7250;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [rmEaz3OL6f9D8EfDXzxcVUtTNUIcv679Zo583ApAhlhw6cFkQ05sMJoNZstrwDvU] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: e8301be8-95b0-409b-848e-08d8a542dea2 x-ms-traffictypediagnostic: DM6NAM11HT161: x-ms-exchange-minimumurldomainage: github.com#4821 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: c0zNxc4dT/jVGnD9DEJwGciatJ903NRngLTc99pftERN6huCJ/LX5y/VF1gT4kNsTVjs0enSbFdnKwmvkYEk78s5G2/FpeBHjl6EHUNpcsp7h9e6V0WybtGZllWTw0QE4Djc1e0xF3190mP8QtDtSGVpvi+Swxj0XN4llFl2Q3dfqtmSO6kmDvqjFKZ85PwzhPOlhtQY8EUYKi3v5KSmzG5oDS1PUxUmRH6gkZE+dxCfOHQIrW7qJyFltF9UwuIWBJgj2ImaxqM87AdgBvV3PSj/34n9mjaHfMyely9a0kw= x-ms-exchange-antispam-messagedata: 9M3tW23iNYck0SIwlkJJhob5yufC5cSdJ4qYZU6S4ofts9aLO/iQpjmj2e12vhenUTxge2aeJTc1K7jltVQf+xzBgjCc7sPCAU42WyRdJjKYvr7tkNPXCAdL4hRNWdMgLUjVtPHUIyQZT1B1JLx+iETKO2JieucLk8NOfwZTphpcCxTi4h0uY2wN8YXBDRrJzatJzXcbWyJs6zITc3mQrQ== 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: DM6NAM11FT026.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: e8301be8-95b0-409b-848e-08d8a542dea2 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2020 23:56:29.3702 (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: DM6NAM11HT161 Subject: Re: [PHP-DEV] Re: Straw poll: Naming for `*any()` and `*all()` on iterables From: tysonandre775@hotmail.com (tyson andre) Hi Mark Randall,=0A= =0A= > These functions make sense. However I think we need to give renewed =0A= > consideration to:=0A= > =0A= > $itr->all();=0A= > $itr->some(...);=0A= =0A= That wouldn't help for arrays, which would be the most common use case - I = don't remember seeing an RFC for https://github.com/nikic/scalar_objects an= d that is a much larger language change.=0A= =0A= This also wouldn't help if I wanted something that could be used on any Tra= versable.=0A= Currently, there's no support for default methods for interfaces such as It= erator/IteratorAggregate - I think I saw some discussion of that.=0A= (e.g. to check for any()/all() on generators, user-defined classes, etc)=0A= Backwards compatibility of method signatures with the same names that were = written before default methods were added would be a concern, though.=0A= (https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html)=0A= =0A= Regards,=0A= - Tyson=