Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111761 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81972 invoked from network); 1 Sep 2020 08:52:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Sep 2020 08:52:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C5B5518053C for ; Tue, 1 Sep 2020 00:57:32 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (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, 1 Sep 2020 00:57:32 -0700 (PDT) Received: by mail-io1-f51.google.com with SMTP id m23so268076iol.8 for ; Tue, 01 Sep 2020 00:57:32 -0700 (PDT) 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=wWCa/AMCTSOhKmjO0MZtQxR7Yq/KP8JUUzNGfHBYYmg=; b=fSQVG1EwrqWAD1tgJvquLy8uti6fm9tBLbiwL9G/X0f0QKnBmJynpRn3NbfWo9jnoK 5ZKtzxvJasRrLVtL72tzeG3VNOgLHYMnOSh/a/7P9wTmMN81nt/dfvkvwoJDsaDT+TS8 KuwSd3Zeto2u9U5XSf1mZC87EDyZYyJqqAfoke4MzOSVcWk8fxYG3ejNqQimzB4KCrRj zsINnLDXwhFWRywLuiRyuOGj0w+/EoFcpduqEJXCZr8hwpPnXgT2aY6Bu0c3O228lQ2R l1U0swT++OQy/gwArnIXI6VGoQnrIEnpKRs3GAYfWj81EXvU86W2JsqeDECWWXrTWowP A7Rg== 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=wWCa/AMCTSOhKmjO0MZtQxR7Yq/KP8JUUzNGfHBYYmg=; b=Zk7Y/fqAEr0eAMBO5U15Oxn4D/nJ1cn/7FuWZaEc6tK3gNoaBeOepbTmRCoPBPe1zt F4b1leljzqS/xmKmKZ9U7nfkOcdIt9TrUebor/GYT+IhvocRuBSIWkSyE7IcyNCFZ/QQ BG9hF4aoGD7j026DT6hBeaXrHdfqpEFZtKuKXYpt11H+ebEcbotMVvBMmDudZ9i9JS6O 0w2847ZMPKStzNF+dFUY49Uw5qCthW0vUu9QjS6pWUSiUN29O4HEeQqsjBsbxoleOa/q iW04+/C6ovUUEm1HgSM7CR1/1rKiy5PoXv21FcP+4wSFkALEvXG4aosPgAzh4Gndzuho 7avg== X-Gm-Message-State: AOAM530m8NiquO7SdAlGPH0q7//4oC5A9wyn5DwYcpq+/RonHgH9gZh0 VhE90WKLcuCXRyc43r2Ro4uvRIi69voeMdpp4TE= X-Google-Smtp-Source: ABdhPJxp632TVoMR386u9teep9KIRVwWjoUV+nenwq6ZwkAzdd50URGm/O1bprWKeXQnqH5XnopZAM/bAey2D7jAFtg= X-Received: by 2002:a05:6602:1593:: with SMTP id e19mr484679iow.90.1598947051273; Tue, 01 Sep 2020 00:57:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 1 Sep 2020 09:57:05 +0200 Message-ID: To: Nikita Popov Cc: tyson andre , PHP internals Content-Type: multipart/alternative; boundary="00000000000001836a05ae3bdf66" Subject: Re: [PHP-DEV] [RFC] Global functions any() and all() on iterables From: kjarli@gmail.com (Lynn) --00000000000001836a05ae3bdf66 Content-Type: text/plain; charset="UTF-8" On Tue, Sep 1, 2020 at 9:31 AM Nikita Popov wrote: > To be in line with naming conventions, I would suggest calling these > iter_any() and iter_all(), using iter_* as the prefix for our future > additions to the "functions that work on arbitrary iterables" space. > iterable_any() and iterable_all() would work as well, though are > unnecessarily verbose. > > Regards, > Nikita > Hi, I would very much prefer the verbose versions of the two, "iter" doesn't mean much to me, and I can imagine it's confusing to newer developers as well. I'd rather not have to guess what it means when reading it, as it could also mean something I've never heard of. Though if the choice arises, I would prefer "any" and "all" over "iterable_any" and "iterable_all" for the sake of simplicity. --00000000000001836a05ae3bdf66--