Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123512 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 382CE1A009C for ; Tue, 4 Jun 2024 20:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1717532348; bh=Fj7+AYJnBVm9WQH8oEZZJTiMluRIluXF00fiiNtMIyg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=UfAVLeNsIKCw543QnfS0AFP/zPU0LwqFRDrvQxTGcLAZIzj/1hWDrbHBgQFAVk6+3 EMEhs86Fg+gHjktguFXvg54cjBG6fdZBPLX0kOJSjYK3c0I8mUhEDeqodnl/2jLs1V E5wCu3gACkpEcDeVTcruUb3xEYW927AvIXKkboAjvoNnya53d84OJioDrNOv0inPFG up0RfXZaMLSMRmEZSIn9d5t2buajR7E9I8wVqaY8Xa3+H0wVe1safm8dJm9z1NtSXj gn7m5CXPhZ6RZKMPzGdkkXVmROPuuZ1nIElYbE34su1hVn7sXE8hRXAMTgvsh1Kx8a o5fQmC4EqW+Gw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D68EE180681 for ; Tue, 4 Jun 2024 20:19:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 4 Jun 2024 20:19:06 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id D71AC13800FE for ; Tue, 4 Jun 2024 16:18:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 04 Jun 2024 16:18:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1717532281; x=1717618681; bh=7qTlPC4w6K 9LQ3cGr9UNRIr2UbbGeF1PbQ9oQLTByQ8=; b=kYefELTNZwuGprTQ97QzYr0Yo/ xoY3PYZ34V4BVe9S9tKMyBFc1Bndtjy8r3GvBT9nHWAItNl2NrN/P4kY31wTWEi9 ofCwYRBOZxmUlBpB6MvAGbM1I/MMFnQ9xD3XdsLJ0RInP6pShGYBCWAIqXdhRBjS 5BjU0IWSFptiQKD6b+p7Z2kGXARXz747kzaxf3zKXtQtiD6W+N+ZG+Rjmh5eFYoa 7MS8naKi/Wu9mIy+f9jDxNNEDNe/hKDPyoiHjZZUX9f8zpYAAJ3VqyElS3GLbKzM EaqIHnx/yIWk8WKyO5JqmddppEu8fxizhEmZ8gu9G/yNFxeZ/hMdwnQDU57w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717532281; x=1717618681; bh=7qTlPC4w6K9LQ3cGr9UNRIr2UbbG eF1PbQ9oQLTByQ8=; b=quqF9Uf5Y1BkatJ/l2zKd//Ec9XkuJonb6RYgJRopK9y XSU4VuT0EAZjODIL0aH2yuUoIyuKw7eWLMctz7sSkrGHTXNs5QzsE31oBUfK4ZzQ /0GJpKbbPy16TARdqfMJ21txChLbmil0amGF4UXACOCpwrqx3ZbaWIJP/D3htEK+ whPC3xTR4q7aNclGvUC0brmJoKAM3ePNj7uF8h3Blt5DsJoPbSRPRD+EXCJTNkU6 Iq+iuX9gjmFipiA3+t6LZxvobiA8TPp3B26y2oVLTcFCLKSmzKX6ojeAZN4p/et6 ZK9X43EuL5yR2WIHS+rEaF1q4EshGxVTB1jHogWPKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelgedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtd erredtvdejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe ethfegffefveeiheekjeeljedvudeiueeugeeugeeijeehffeiuefggfejtefgjeenucff ohhmrghinhepphhhphdrnhgvthdpvgigthgvrhhnrghlshdrihhonecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhmshhophdrphhhphesrhif vggtrdgtohdruhhk X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 4 Jun 2024 16:18:01 -0400 (EDT) Content-Type: multipart/alternative; boundary="------------hYaa9tJCyenQh20wWsUwctNg" Message-ID: <0368b45a-6edc-4868-947d-363e3780615b@rwec.co.uk> Date: Tue, 4 Jun 2024 21:18:00 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods To: internals@lists.php.net References: <6fbe395a-7e47-4ddd-8557-2566a156cf36@scriptfusion.com> Content-Language: en-GB In-Reply-To: <6fbe395a-7e47-4ddd-8557-2566a156cf36@scriptfusion.com> From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") This is a multi-part message in MIME format. --------------hYaa9tJCyenQh20wWsUwctNg Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 27/05/2024 17:56, Bilge wrote: > On 27/05/2024 17:51, Elminson De Oleo Baez wrote: >> Below is a brief overview of the proposed methods: >> >> any_empty(array $array): bool - This method will return true if any >> element in the provided array is empty, and false otherwise. >> all_empty(array $array): bool - This method will return true if all >> elements in the provided array are empty, and false otherwise. > Dude... what? https://wiki.php.net/rfc/array_find Please try to be polite, and remember that just because something seems obvious to you, that doesn't mean everyone else in the world already knows it. How about we re-word with that in mind: Hi Elminson, As it happens, there has been a recent proposal which includes "array_any" and "array_all" functions, which could be combined with the existing "empty" function to achieve these results. You can find the RFC here: https://wiki.php.net/rfc/array_find and the mailing list discussion here: https://externals.io/message/123015 Regards, -- Rowan Tommins [IMSoP] --------------hYaa9tJCyenQh20wWsUwctNg Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 27/05/2024 17:56, Bilge wrote:
On 27/05/2024 17:51, Elminson De Oleo Baez wrote:
Below is a brief overview of the proposed methods:

any_empty(array $array): bool - This method will return true if any element in the provided array is empty, and false otherwise.
all_empty(array $array): bool - This method will return true if all elements in the provided array are empty, and false otherwise.
Dude... what? https://wiki.php.net/rfc/array_find


Please try to be polite, and remember that just because something seems obvious to you, that doesn't mean everyone else in the world already knows it.

How about we re-word with that in mind:


Hi Elminson,

As it happens, there has been a recent proposal which includes "array_any" and "array_all" functions, which could be combined with the existing "empty" function to achieve these results.

You can find the RFC here: https://wiki.php.net/rfc/array_find and the mailing list discussion here: https://externals.io/message/123015

Regards,

-- 
Rowan Tommins
[IMSoP]
--------------hYaa9tJCyenQh20wWsUwctNg--