Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-06-11 Thread Bilge
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,

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-06-04 Thread Rowan Tommins [IMSoP]
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

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-06-03 Thread Bilge
Is it not already covered by array_any() and array_all() anyway? You can just write a predicate if you want the (awful) semantics of empty(). Bilge

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-06-03 Thread Ilija Tovilo
Hi Elminson! On Mon, May 27, 2024 at 6:51 PM Elminson De Oleo Baez wrote: > > I hope this message finds you well. I am writing to request RFC karma for my > wiki account in order to propose a new RFC. > > My proposal involves the introduction of two new methods, any_empty and > all_empty, for w

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-05-27 Thread Bilge
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 a

[PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-05-27 Thread Elminson De Oleo Baez
Dear PHP Internals Team, I hope this message finds you well. I am writing to request RFC karma for my wiki account in order to propose a new RFC. My proposal involves the introduction of two new methods, any_empty and all_empty, for working with arrays. These methods are designed to provide boole