Re: [PHP-DEV] Discussion - Anti-null coercion

2023-10-29 Thread Sergii Shymko
On Oct 29, 2023, at 3:23 PM, Robert Landers mailto:landers.rob...@gmail.com>> wrote: Because falsy is different than null/non-existent. The closest equivalent is "array_key_exists" (instead of empty/isset) but this proposal isn't just applicable to arrays. I run into this pattern of "if not

Re: [PHP-DEV] Discussion - Anti-null coercion

2023-10-29 Thread Sergii Shymko
On Oct 29, 2023, at 1:31 PM, Robert Landers mailto:landers.rob...@gmail.com>> wrote: Hello Internals, We currently have a null coercion operator: ??, but we lack an anti-null coercion operator. For example, if I wanted to operate on a header, if-and-only-if it exists, I'd have to write

[PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds

2023-02-01 Thread Sergii Shymko
a wiki account "sshymko" with the intention of submitting the RFC. Could someone please approve the account and give it some karma? Looking forward to collaborating with the internals team!  Regards, Sergii Shymko

Re: [PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds

2023-02-01 Thread Sergii Shymko
From: Kamil Tekiela Sent: Wednesday, February 1, 2023 11:55 AM To: Sergii Shymko ; PHP internals Subject: Re: [PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds Hi Sergii, First of all, let me say that I am glad more people

Re: [PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds

2023-02-01 Thread Sergii Shymko
From: Alexandru Pătrănescu Sent: Wednesday, February 1, 2023 10:53 AM To: Sergii Shymko Cc: Marco Pivetta ; PHP internals Subject: Re: [PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds On Wed, Feb 1, 2023, 19:59 Sergii Shymko mailto:ser...@shymko.net

Re: [PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds

2023-02-01 Thread Sergii Shymko
Hi Marco, From: Marco Pivetta Sent: Wednesday, February 1, 2023 9:25 AM To: Sergii Shymko Cc: internals@lists.php.net Subject: Re: [PHP-DEV] RFC proposal: function array_filter_list() to avoid subtle bugs/workarounds Hey Sergii, On Wed, 1 Feb 2023 at 18:22

[PHP-DEV] RFC proposal: values getter in BackedEnum

2023-02-08 Thread Sergii Shymko
n RFC and implement it myself. Some guidance on the performance optimization aspect may be necessary though. I'm still missing the karma necessary to create RFCs in the wiki. Regards, Sergii Shymko

Re: [PHP-DEV] RFC proposal: values getter in BackedEnum

2023-02-09 Thread Sergii Shymko
From: Rowan Tommins Sent: Thursday, February 9, 2023 12:56 AM To: internals@lists.php.net Subject: Re: [PHP-DEV] RFC proposal: values getter in BackedEnum On Thu, 9 Feb 2023 at 01:30, Sergii Shymko wrote: > I'd like to propose an improvement to bac

Re: [PHP-DEV] RFC Proposal - Types for Inline Variables

2023-02-07 Thread Sergii Shymko
From: Olle Härstedt Sent: Tuesday, February 7, 2023 11:53 AM To: Rowan Tommins Cc: PHP Internals Subject: Re: [PHP-DEV] RFC Proposal - Types for Inline Variables 2023-02-07 17:21 GMT+01:00, Rowan Tommins : > On 07/02/2023 14:07, Olle Härstedt wrote: >> It

[PHP-DEV] Security implications of parsing env variables in .ini

2023-07-13 Thread Sergii Shymko
25129222?s=20 Regards, Sergii Shymko

[PHP-DEV] Callable arguments cannot have default value

2023-11-27 Thread Sergii Shymko
, correct? Callable properties (separate topic) may be a challenge, but can at least argument defaults be supported? Regards, Sergii Shymko