Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112598 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6546 invoked from network); 22 Dec 2020 17:35:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Dec 2020 17:35:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 521631804F2 for ; Tue, 22 Dec 2020 09:08:39 -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 ; Tue, 22 Dec 2020 09:08:38 -0800 (PST) Received: by mail-il1-f178.google.com with SMTP id n9so12645515ili.0 for ; Tue, 22 Dec 2020 09:08:38 -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=7hr/u3GjxWHo/7TFtUV4M0w73CVdcB0YgRcwZYFmpd4=; b=BsJmhoXDmq0rBvKEavCMNQbVaQfQ+y5SNBntIjVOP/ji95DbLJOqwoc9Q5qHV2xInc 5ZFeW9OQTbT3xzCzXAGBBjvRc5aj9mxY6Eb/MMnR/DvQALGx3u+im5/cElFQXxx1rBJf uYKQlMIeEgyMT8ZyuZGIOLN5yf1g853PxXe4A= 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=7hr/u3GjxWHo/7TFtUV4M0w73CVdcB0YgRcwZYFmpd4=; b=BqinoItlTUBARbMn/rAB+6ZgDuz77c2BuYTmsdSk0ylX3s82i1+db2v499QCLKbHWY SU07nspQb+PKwnhV6jrUrZUSP2VzhQ3Fe3zNwH+BP2YywPK+h3aRmLpZGVXsr1IW7Mt4 IxhtIACXY4Ev2/f6fzjbq5WYmCnxM0bSCCD1xdyUnbAuGba5nImeROrPPqljYlmVzg8q ahqKjFHF4SDhzeeeQW+ec3Pz+GHbN0key8zBP8Beisq/Nf8W3cR3DVTd7uEdMfe7y5wu vWlP4DqKlzA84mrTgVCBxNJNyh6ChgbEedUdFUeJWKz0HACy97HVQWleGGv49oRkbvwi CNGg== X-Gm-Message-State: AOAM530P9bwrCPWZmLOuyfV5AyeK2QGUPOcIFRph15Hrjy66oW0/ydqZ JmeXOrhTpIVUuGvDCJdI4RbLf8bSlN15s2PjJzl2Og== X-Google-Smtp-Source: ABdhPJzQculmtBclmQcdr/NAHhorCBHjbZKL/9oJXXKaoyka++eWrR3776IyWPQ6NiF5w1x7rmavirNYgunN70MWKcA= X-Received: by 2002:a05:6e02:1a6b:: with SMTP id w11mr22373498ilv.112.1608656915639; Tue, 22 Dec 2020 09:08:35 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Tue, 22 Dec 2020 10:08:25 -0700 Message-ID: To: tyson andre Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Straw poll: Naming for `*any()` and `*all()` on iterables From: internals@lists.php.net ("Levi Morrison via internals") On Sat, Dec 19, 2020 at 1:24 PM tyson andre wrote: > > Hi internals, > > I've created a straw poll for the naming pattern to use for `*any()` and `*all()` on iterables. > https://wiki.php.net/rfc/any_all_on_iterable_straw_poll > > Background: The RFC https://wiki.php.net/rfc/any_all_on_iterable proposes adding only two functions, > but more functionality acting on iterables (array|Traversable) may be added in the future, > making it important to get feedback what people feel the best choice of naming pattern would be > to avoid inconsistency or name changes later on. > (Many alternatives were suggested in the initial RFC announcement - https://externals.io/message/111756) I want to re-iterate my opinion on this discussion thread: anything with a prefix is a hard-no from me. Namespaces are literally designed for this, and I will not vote "yes" to `iter_all`, `iterable_all`, etc, no matter what the prefix is. Anything without a namespace is a no from me. I'm flexible on many other points, but not this one. It's 2020 (almost 2021); let's use namespaces for what they were designed for. This is a perfect opportunity; they work on more than just arrays so using the `array_` prefix for consistency doesn't apply.