Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113110 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67454 invoked from network); 8 Feb 2021 15:23:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Feb 2021 15:23:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C9F101804F6 for ; Mon, 8 Feb 2021 07:08:12 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) (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 ; Mon, 8 Feb 2021 07:08:12 -0800 (PST) Received: by mail-il1-f178.google.com with SMTP id p15so12996437ilq.8 for ; Mon, 08 Feb 2021 07:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qgq4k9CJHxQ8ttUItj9Tgww4KVkFyKAaqTU51ARbohs=; b=ehdA9tdCjaMozlZKL2d6+mkNCfSALGbgkdLQUPspyEmo6iC+YSNF5BNwCDnVmpjEU4 ZfnB44XtKfdvfT7byiHjamoXB4yesVugRzUBAnT27FQuR8TIpJPX5J1cRMGGYl6fpTgP bdZDjA8gd/tNx2RvcQXJWOmw/oNCc0Wkesbao= 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=Qgq4k9CJHxQ8ttUItj9Tgww4KVkFyKAaqTU51ARbohs=; b=Tt67+Bpl3OArp/+mR4M2cbiekLHucG/kCfLIxPe6yFeqTIT3dq/JpZj24sm8pHT72E 7JYaQnaFkSk4iyabfgZtm8hTMNElbKX5zZNSua6CA8TxP6bQQrKFFTtRyxqnQs9QbM7Y my7b8k6jVUDXtBea7pN8JmR94K8lphQfY7gsrgeLx5c7/mpXdI9aYztC019AzTQVOJZj svwR0QPmG2Ao3SKJcP6KX2fO/4GdgiugkMGifVWm2U6S3fdjryagnjVxJPSA2wu13w5V RVi7o61N1sNGGEU7P+wrfdIJNkDnhYUrsNz8m1fHjZSzzFkqdnHLRklE/QGr5RDENI9x aBcg== X-Gm-Message-State: AOAM531Ov6eoQnnFKRyM1T6ifxQ/2O2boeL4hM7du7iMQrXkyDiZb3dm F0bq06DeTP+ptNj+UkuGwU5iyA6g9YQdv56vbN1fnWbc9ko= X-Google-Smtp-Source: ABdhPJzOF+eJQn89AKTKtamGYkcOtEFNuVT/SlzkbNokW0avxzUQDYHbgAv/axZo+Yk5AxH9D6YI2B0xVOHJLH8NKF8= X-Received: by 2002:a92:c26a:: with SMTP id h10mr8996325ild.234.1612796891232; Mon, 08 Feb 2021 07:08:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Mon, 8 Feb 2021 08:08:00 -0700 Message-ID: To: tyson andre Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables From: internals@lists.php.net ("Levi Morrison via internals") On Mon, Feb 8, 2021 at 7:33 AM tyson andre wrote: > > Hi internals, > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and ends on 2021-02-22. > > This RFC proposes to add the functions `PHP\iterable\any(iterable $input, ?callable $callback = null): bool` and `PHP\iterable\all(...)` > to PHP's standard library's function set, using the namespace preferred in the previous straw poll. > > There is a primary vote on whether to add the functions, and a secondary vote on the name to use within the `PHP\iterable` namespace. > > Thanks, > - Tyson > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > Thanks for the RFC. I have voted no, even though I am very supportive of the direction. My objections are: - I think the scope is too small. This is introducing a new family of functions, but is only proposing two functions. This is too small to firmly root in good design and precedence. - I do not like the chosen namespace. This is not as important as the previous point, but still factored into my decision as we are still very early in choosing namespaces for internals. I don't want to vote for something I think is a bad direction when we're this early on. Again, I am supportive of adding these functions in some form, but I very strongly do not believe this RFC is what we should do. I tried to collaborate with Tyson more on these points but either we mis-communicated or he wasn't interested. In any case, it's up for a vote so I choose "no."