Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112600 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13938 invoked from network); 22 Dec 2020 19:01:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Dec 2020 19:01:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 221B61804B1 for ; Tue, 22 Dec 2020 10:34:26 -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-SN1-obe.outbound.protection.outlook.com (mail-oln040092005107.outbound.protection.outlook.com [40.92.5.107]) (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, 22 Dec 2020 10:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oNDH9V5BBuhe2gysE7as/IOGCJpVXk9Ix4jTW9QW7AK0enShl0Os7AI201dd2hkEO1HHGKacYnCjWxAMdlZhZ2i3PQv/zmdnE9LEayCg32Dh77DkSxrKEY/LE6vWcWdXJ21ayKf1lS+A0Z1+mYGck1oZNhSOyCDokHg18M4TgWTAPdkY33Ub/oUgOaRkDAOZAnijO3OQFxERlbL3xl0T9xeu6N++wJF8kagt9pZ3y+c/PBJYS04wUurb5IereiPICm5cXHLF8WEdUlIf/uG+TL23hFiJCydrLAZlsJlvfv1eibZ+SYAUWMNWjUidpqgUtvYyJ0MChFDtfHY1/RLTPA== 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=5CwMAiXwBTofe4lDWvymEtNwz4B4hfMxZ0WTEZyqTEI=; b=F4Y1Sx+c9FM8sLD8PwYnILGbhoi+Y8RWWMezoXoEQ9qUaPgQyxEj15EFMa3A/4j18XdRrY6Mn2y9ppepkDaGQ4UNwqQtdZCAH9vYKiAUQcuzxUAouy2WDtcZHCPIEFVoMzu7dECDR8yeQEeLy8IU11d2NGCobwOqNBUFTWrtzMEURA7VnJwFQ+q5WmuvDe+pE2wzWEZbScr0LGn+z3Eh4Bvp/Jr5uC1ZipYkSnEZ7ul9fJS3lt0kml/968ygM7wck0USsOwzAuhKeFk74keaKVlmLcoqRoUAb20czaPDLQSyVPabLpO/cL+mi1GU893OYU0dConISCx5Yu+oXLZq+A== 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=5CwMAiXwBTofe4lDWvymEtNwz4B4hfMxZ0WTEZyqTEI=; b=JlZv6o/TB9we0qpS1qTvtfUKYWkOy8Ea1VKsR910SMuQYucEGlo4opb8V2LNcS0BX3F7lnIOMAc22tFVW9r+any5ZPelowdkR2ZFU6OwF+g5aeG/BBe8J/sEdFT60f120+9VfIQfjmmR35bE0M5v2c6O2C9aMTt/58fd/ezNo1anfp7Ds63kt1a2k0MpZd5gpVnMUW2GOyoZmrzCoD4WK7PFQT6+zSng8NDZGYZCFJt3//vKdFNIJM/Hbo5dxGNzSWsyzFzZwm0CBG7TK8eiXlrYtH+YRY6gXC14oBE0I5DNwE3g0EXVEg407+0VgVTKfch1ry4Qh+YBHlU+GF6SRw== Received: from CY1NAM02FT053.eop-nam02.prod.protection.outlook.com (10.152.74.56) by CY1NAM02HT075.eop-nam02.prod.protection.outlook.com (10.152.74.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Tue, 22 Dec 2020 18:34:23 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e45::4f) by CY1NAM02FT053.mail.protection.outlook.com (2a01:111:e400:7e45::165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25 via Frontend Transport; Tue, 22 Dec 2020 18:34:23 +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; Tue, 22 Dec 2020 18:34:23 +0000 To: Levi Morrison CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] Straw poll: Naming for `*any()` and `*all()` on iterables Thread-Index: AQHW1kOROymHHd+jAEaQQL1oN/KEl6oDXZeAgAARw6g= Date: Tue, 22 Dec 2020 18:34:23 +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:979F5AFC47400D6CFAC1DC77EE1683C93F635333DCC58E39605A05EC8820C5C0;UpperCasedChecksum:09331A56C848093497E061FDB19660026A54852B174AEB78ABB0528A087CCFC3;SizeAsReceived:7214;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [JumE4NvdXXMQBPjWyDDmvt/eT4pdiOBBXBtjSo+1eMqEDKiHeIDdknBLliopkmMB] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: f03f4d63-f122-4a33-68f0-08d8a6a83473 x-ms-traffictypediagnostic: CY1NAM02HT075: x-ms-exchange-minimumurldomainage: externals.io#1633 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: An/fpp7cYl5R/kBvdKHtFL8giYy/6bf8CdKgtZCyPvW1Ki6Sk/0U252IXX/LByTJdN2+1HAPJO6hKo18SZRPhjWXukQF0kIDbh2GrSBNSXDmESSCLr1T0vKFvvBgrxreYr2/DJk8kxxpk1STQkG5e0SlJkZ9aoCr2sgomzI6elRIGLpFQLAx37sV+eDGMm4E5JpXvLZJEAInGytNP9Fjpj0wsovXMBTPdyyg4SNlVqejOYtPO7/A321ftUv+R1lesyaOB1mHKh75y4yUfuJNSD0bGlea/O8J96iHsKBAiek= x-ms-exchange-antispam-messagedata: Bhp5SFu6sgd7TwmEAFlHNsT0OmICfp9QXbWQv7rDIC+lI+p816XFQ/1RQR1zzvavBizo6OmDT83q0nJh9afhek/tu7DQSpveBmr/h1c8hoIm6Alc6jJj3ydRZcEaDsWMBN7+LDsKz0/y58cgyCIbGzmnmxem0qqFNaiu2Le8CDU3JUetceEkdgEdsF4Pf1Ole/lgLEcK3q8dwytMtleE3g== 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: CY1NAM02FT053.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f03f4d63-f122-4a33-68f0-08d8a6a83473 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Dec 2020 18:34:23.6581 (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: CY1NAM02HT075 Subject: Re: [PHP-DEV] Straw poll: Naming for `*any()` and `*all()` on iterables From: tysonandre775@hotmail.com (tyson andre) Hi Levi,=0A= =0A= > I want to re-iterate my opinion on this discussion thread: anything=0A= > with a prefix is a hard-no from me. Namespaces are literally designed=0A= > for this, and I will not vote "yes" to `iter_all`, `iterable_all`,=0A= > etc, no matter what the prefix is. Anything without a namespace is a=0A= > no from me.=0A= > =0A= > I'm flexible on many other points, but not this one. It's 2020 (almost=0A= > 2021); let's use namespaces for what they were designed for. This is a=0A= > perfect opportunity; they work on more than just arrays so using the=0A= > `array_` prefix for consistency doesn't apply.=0A= =0A= I can understand the argument that somewhat of a new category of functional= ity making it a candidate for a new namespace,=0A= but it's common enough for me to want it in the global namespace=0A= (any of the language examples in https://wiki.php.net/rfc/any_all_on_iterab= le#introduction=0A= have it in an object method, or in a close equivalent to a namespace import= ed by default such as std::)=0A= =0A= My goal is to add two functions, not the much, much larger goal of setting = a precedent for the many topics which adopting namespaces would provide=0A= (choice of prefix, choice of casing, choice of `SPL\`, `EXT\SPL\`, `PHP\`, = `PHP\iterable\`, or `Spl\`, or `iterable\`, whether the extra verbosity is = worth the benefit, etc.),=0A= which may be more contentious than the decision to not start using namespac= es here.=0A= Both https://wiki.php.net/rfc/php-namespace-in-core and https://wiki.php.ne= t/rfc/php_namespace_policy have been opposed,=0A= and I anticipate disagreement on any of those from https://externals.io/mes= sage/110711=0A= =0A= Adopting namespaces without having any form of consensus on the way namespa= ces=0A= would be set up seems like it would be a potential source of language incon= sistency and making it harder to learn,=0A= if some core functions are `PHP\strings\tolower_c_locale()`, some are `iter= able\something(), others are `Ext\Graphics\draw_line()`, etc.=0A= =0A= Thanks,=0A= - Tyson=