Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123587 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 83E921A009C for ; Tue, 11 Jun 2024 20:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718138643; bh=D/P3pDR10qZDRkUFTJoFjqOlxYIKQ6aLPMs0Ekk73yI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=AwfPZvEj8Hzen9LfD+mPLHe1Oh4XfkDKpHXEEFYAm5sTGCnyRyCWE9Wr83enSwLjd u9Kmw2B8wYuFXIcxa/ZEPWsszVf/9DGznOHLwmwaaSe1pGEhBzA3J0daf0WQ1r0IyQ Bte8hsV5NnTrH5xz9eN1aLLf0vMPzsWHaUuVCqq8aivCO5VLfh8ZxcxWs34+WUXbuj aYw/NVj7u9pSI3Cctbp96qw7RPs+G6t1jYDGi7IHrpt5vNkZFDnbkHRuxqR67vJEf0 mdi4F47Z3tbV6KtA3gmFeq5eDgryMJx5jxbLOUQRUIVsO0bzv3/rUvRbiAL4FbUfA9 z9uJ4ra7eSM1A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 48F9D180635 for ; Tue, 11 Jun 2024 20:44:01 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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, 11 Jun 2024 20:44:00 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-354f3f6c3b1so4944315f8f.2 for ; Tue, 11 Jun 2024 13:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1718138571; x=1718743371; darn=lists.php.net; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=suRZQpB+hFMOjunIimcA2LihEw25ZKIqKxnJdD6d9e8=; b=l1aaAJuGdu2xLdckoYr5di/I+QhC4bmj2VsAyDyfTeO+64MVhMagcnhRkpRF2t4BYC QqK7yWghvEzLrT00lUltFPxdnnN5Xqgq1wrfHwErQ8oc1NKBmeVjTxdX8TgRQsKJtkfR HpIwR2OqZFRcB492B1OwrPaN0AgMdIQ+uUGNk3D6KxN6c5IByL7eyN0slNKKY7bgt+7S wv7RKY8RRNliMBmHvOoLLxfxGQ9Ia0RfsaIF1PQWONTp0AdzqOr7mi+WRaIHkCAbJraL ucupiUcmxCq/WsTUxistGf+77Xb8fxjvQ7xoZ3XCxwrZnOT2prwcLTPlAlPcFdiY2jVi f8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718138571; x=1718743371; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=suRZQpB+hFMOjunIimcA2LihEw25ZKIqKxnJdD6d9e8=; b=iVEw+wzLm5j7qx5ncyzaEB/AIjZsae1pz9qFlHelwls8tTB4mF4gxU0rTMZlKCV2L0 WOGjxfSDvPpWbDKeR3stzQJ5aEOZ6V+wWFwffZz6jvJ5spCQF0rHB732TRhAYsFuXOQw eSa7y8VZothudW8J97Y0s8/3U3dkaphRE1+ueboUam9x5nTYY50mpSpoOOWMj4xim4kJ zeP7EKtwAuswUTxvLiaw5z/PnDMDxrB9ZsLwgCbuGGL7JEuvZXn/Y7l+uarxlgLHauP9 jN32jS5Qs4htdOGdl/ucCYACvLB/NjvQLiYQbV/P1JhNL/asifJPFAfRPVfhlBtVnpLa AZCA== X-Gm-Message-State: AOJu0YwBnTTPDXt0kkiz0AQJJtgb8t6lRslTUP+mVe7VXpeZh4tDagaj LJH4Fmkfql3m8AruEPTxwA0wKay4AZXeDUSlP4o3/JfJPd6HtRswW5fvFm1AbOF0med+Fn/Cgnc uS9E= X-Google-Smtp-Source: AGHT+IEyE2FqoOg9e4umcH4UZzSr4ayMv0nki/7NcQSft8kmuR4tGgqXO1ZbE+y4pPVIhru2JlrW7Q== X-Received: by 2002:a5d:6901:0:b0:35e:4f42:6016 with SMTP id ffacd0b85a97d-35efed6573cmr9020912f8f.30.1718138570977; Tue, 11 Jun 2024 13:42:50 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:9c62:1ac4:f1d9:b066? ([2a01:4b00:bf09:5101:9c62:1ac4:f1d9:b066]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-35f254fb3c2sm6061371f8f.49.2024.06.11.13.42.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 13:42:50 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------0O76rx79IYK0pcfq7YUiuFtC" Message-ID: <8ea01bbf-ceb4-4634-9456-080609a4a3be@scriptfusion.com> Date: Tue, 11 Jun 2024 21:42:49 +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> <0368b45a-6edc-4868-947d-363e3780615b@rwec.co.uk> Content-Language: en-GB In-Reply-To: <0368b45a-6edc-4868-947d-363e3780615b@rwec.co.uk> From: bilge@scriptfusion.com (Bilge) This is a multi-part message in MIME format. --------------0O76rx79IYK0pcfq7YUiuFtC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/06/2024 21:18, Rowan Tommins [IMSoP] wrote: > 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] Hi all, I would like to retract my original reply and apologise to everyone. Originally I thought the OP was submitting an identical proposal, but he was not, and that is on me for not reading properly. In any case, you're right I should have been more courteous. Hope there are no hard feelings. Kind regards, Bilge --------------0O76rx79IYK0pcfq7YUiuFtC Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 04/06/2024 21:18, Rowan Tommins [IMSoP] wrote:
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]

Hi all,

I would like to retract my original reply and apologise to everyone. Originally I thought the OP was submitting an identical proposal, but he was not, and that is on me for not reading properly. In any case, you're right I should have been more courteous. Hope there are no hard feelings.

Kind regards,
Bilge

--------------0O76rx79IYK0pcfq7YUiuFtC--