Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112593 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92681 invoked from network); 22 Dec 2020 15:45:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Dec 2020 15:45:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5F4B81804CF for ; Tue, 22 Dec 2020 07:18:25 -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.6 required=5.0 tests=BAYES_00,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 22 Dec 2020 07:18:24 -0800 (PST) Received: by mail-ej1-f42.google.com with SMTP id lt17so18735302ejb.3 for ; Tue, 22 Dec 2020 07:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ko6HbsOY6dB7MpG+rzCP4Tx+rhcGkwwBzbZVhre55FI=; b=cSafBfBbM+sz7a6ozALG9UVrM3HEiVpWTlk0DVGeNYPj+fNDzF1L/PzmrkFxiYNitM Eq+OX8EaC63O2DMR/lFbuctliU3VznMAxia3bTLgM2NH6BHsIgKvyr6U90qp+0JXKrWi +Gzi9TJ028GMpr8M68YBfNoxyzjbZkGt8RIN42RNVjPhEPQ9XnMKhwqTKbjXRngLVx7J Nw2W/TYyZdjEM/J+5GVLc+QthVvNpRhik+Vy3YPRj1HfNjKSD6/RVKGyJY7OsdYXCDkW AdX30QOl2iiiMU/l3371Ob/S1XCO8bmWgd8zFPs1k/JcyXm3OyTGSGa9dpdqcvKqRhMv bxZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ko6HbsOY6dB7MpG+rzCP4Tx+rhcGkwwBzbZVhre55FI=; b=LRJhR98ITizsmyFqDFQrvKukJMTlr3VTt8XBq9JjdoQDefjUw8DqHOh//aDhBf2Sl6 TGK4WzXc2oqN1udAAxuXgo9yvyNzny4h4q/JFrgehQJoqgGou+XeFr5Nz/XwGA7mxmQu Y0GxBAxqAY+e9v554py/Xy9iXqsiZwNLf9evAoCDZv6hcqmCk6q80ihm+2iuj3Acl76Z nhB6Vsb5h3gu1XeYK69PVF6tMwmMDYwjEf9ZVTM/glzNcTndzIIihoyjnr1nwyQy4Uzb zXN6UIrWshfRbiALdV3SlhCgOC31jA90JiGot8J8Zjig/mKPYFOUp7c94Enbx8MZwgwE +vcg== X-Gm-Message-State: AOAM531/FClxE234atVdePM+Huc597rf7f9QrfT2lcHSIKk+rfJwx4Ug FWA99R5aDKWiJB1vgfzCfyeIOFwZYlUE811RABE= X-Google-Smtp-Source: ABdhPJywJNy4bzQARfthob0OM2+pV3fcNcLu6OzJKKswV5gWR7/5ZPD6MK+NTzqalc94Hq50JnR80UT4AQzq+x39AWc= X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr19778298ejr.308.1608650298911; Tue, 22 Dec 2020 07:18:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 22 Dec 2020 16:18:07 +0100 Message-ID: To: tyson andre Cc: Marco Pivetta , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000a26d0d05b70f1592" Subject: Re: [PHP-DEV] Straw poll: Naming for `*any()` and `*all()` on iterables From: george.banyard@gmail.com ("G. P. B.") --000000000000a26d0d05b70f1592 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 22 Dec 2020 at 16:05, tyson andre wrote= : > Hi Marco, > > >Hey Tyson, > > > > I know I'm being stubborn, but we have namespaces, but also an "old > guard" that doesn't understand its own programming language =F0=9F=A4=B7= =E2=80=8D=E2=99=80=EF=B8=8F > > I assume it's a case of not liking them or assuming others wouldn't like > them instead of not understanding them. > Namespaces for https://www.php-fig.org/psr/psr-4/ has been standard for a > long, long time. > > And attempts to standardize on adopting them have been unpopular - > https://wiki.php.net/rfc/php_namespace_policy > Existing internal functionality for working with iterators and arrays is > in the global namespace. > > - E.g. it would be slightly more inconvenient to need to write > `print(\PHP\get_debug_type($var))` or `use function PHP\get_debug_type; > ...; get_debug_type($var);` > and some developers wouldn't like seeing the extra imports or fully > qualified names mixed with code that doesn't use namespaces. > - It's inconsistent for some new categories of functionality to have > namespaces when others wouldn't - the php namespace policy vote seems to > indicate there's no consensus on what naming pattern we'd have for > namespaces. > > Even in brand new categories of functionality such as FFI or PhpToken, > we've went with the global namespace. > Small nitpick but FFI classes are under the FFI\ namespace, e.g. FFI\CData [1] George P. Banyard [1] https://www.php.net/manual/en/class.ffi-cdata.php > > Regards, > - Tyson --000000000000a26d0d05b70f1592--