Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111820 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8334 invoked from network); 3 Sep 2020 15:31:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Sep 2020 15:31:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7B6AF18050B for ; Thu, 3 Sep 2020 07:36:36 -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.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 ; Thu, 3 Sep 2020 07:36:36 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id u27so2005337lfm.13 for ; Thu, 03 Sep 2020 07:36:36 -0700 (PDT) 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=ZIHM1XFTlN3yVgStAWQWklkVxVj7A4aTsp/7VMTes5M=; b=mqsHaGWwwcut0Qem5oZtM0e2yLyqcBFppLv6T5Eid+7NbzF+c9mnUpaA4EWxwGChxo WeKWmOWffet2Z1E8zAquBHWCl+ikAtNII46SyMw9+r7uXXthWYo9q9KJmdI+v9dOcoeg d8ppfhhT2cG/dAFRNUXlvIxzD5vOMzxK5s+4K7EAq3mFBoZfdM/KWiBIXlYCT5mR8IaT S/bYIC75HqR+fw7v6rIWJ5t0z8SvUrgaoVgWQ/6V/d/WGFIkRE2pwnrazLyi4g/C+EFU xz+aT2pSMIOhePSAYhTa3D8KlgMPjtiuo/bIo6Y4YRy8TlfHexxGZOqUY5wIMvdfbLbW +xHg== X-Gm-Message-State: AOAM530C0YCnb6kR5jRQ+q3gx0crAJCUyW/bnRysI4OH1xJ7sjriwFzF UyC2FmKtsU5q1ufJRFgc7tuVSGZQOnpcSlfVQ5W1qkaQBlW+GJJ4 X-Google-Smtp-Source: ABdhPJyVV7XWc6GmEn7AZcGoEx+FAPjdwvLnT/+EDCddB10xqiP4/LWMntCM4OWV4p2oImBs3gSOi6MCf2F6nfuPVgI= X-Received: by 2002:a19:4a88:: with SMTP id x130mr1447934lfa.31.1599143792166; Thu, 03 Sep 2020 07:36:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 3 Sep 2020 09:36:21 -0500 Message-ID: To: tyson andre Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ad6e7d05ae69ad4f" Subject: Re: [PHP-DEV] [RFC] Global functions any() and all() on iterables From: pollita@php.net (Sara Golemon) --000000000000ad6e7d05ae69ad4f Content-Type: text/plain; charset="UTF-8" On Mon, Aug 31, 2020 at 6:56 PM tyson andre wrote: > I've created an RFC for https://wiki.php.net/rfc/any_all_on_iterable > > I've probably reached this thread too late, but I'm going to throw out my old chestnut that these things don't belong in the engine. They belong in userspace. 1. Instant forward compatibility (any version can run `composer install`) 2. Instant bug fixes and improvements (no waiting for the next minor version of PHP) 3. Better visibility from the JIT (not having to cross userspace/internals border is good) And that's all I'm going to say because I'm pretty sure I've lost the argument long ago, but here's my any/all/none (and other) methods from years ago (IN USERSPACE!): https://github.com/phplang/generator/blob/master/src/iterable.php -Sara --000000000000ad6e7d05ae69ad4f--