Re: [PHP-DEV] [RFC] Pipe Operator (again)

2025-04-03 Thread Larry Garfield
On Thu, Apr 3, 2025, at 4:06 PM, Rowan Tommins [IMSoP] wrote: > On 03/04/2025 18:06, Larry Garfield wrote: >> So if we expect higher order functions to be common (and I would probably >> mainly use them myself), then it would be wise to figure out some way to >> make them more efficient. Auto-fi

Re: [PHP-DEV] Uniform Function Call Syntax

2025-04-03 Thread Larry Garfield
On Thu, Apr 3, 2025, at 8:52 PM, Yakov Lipkovich wrote: > Hello, > > I would like to gather interest in adding Uniform Function Call Syntax > (UFCS) to the PHP language. In short, it allows to call any static > function `f($a)` as `$a->f(...)`. The `...` is required because not all > functions h

[PHP-DEV] Uniform Function Call Syntax

2025-04-03 Thread Yakov Lipkovich
Hello, I would like to gather interest in adding Uniform Function Call Syntax (UFCS) to the PHP language. In short, it allows to call any static function `f($a)` as `$a->f(...)`. The `...` is required because not all functions have the desired parameter in the first position. Outlined below are

Re: [PHP-DEV] [RFC] Pipe Operator (again)

2025-04-03 Thread Ilija Tovilo
Hi Rowan On Thu, Apr 3, 2025 at 1:59 PM Rowan Tommins [IMSoP] wrote: > > At first, I thought Ilija's example looked pretty neat, but having > thought about it a bit more, I think the "first-arg" approach makes a > handful of cases nicer at the cost of a lot of magic, and making other > cases wors

Re: [PHP-DEV] [RFC] Pipe Operator (again)

2025-04-03 Thread Rowan Tommins [IMSoP]
On 03/04/2025 18:06, Larry Garfield wrote: So if we expect higher order functions to be common (and I would probably mainly use them myself), then it would be wise to figure out some way to make them more efficient. Auto-first-arg is one way. From this angle, auto-first-arg is a very limite

Re: [PHP-DEV] [RFC] Pipe Operator (again)

2025-04-03 Thread Larry Garfield
On Thu, Apr 3, 2025, at 6:58 AM, Rowan Tommins [IMSoP] wrote: > On 03/04/2025 08:22, Larry Garfield wrote: >> However, it also received significant pushback off-list from folks who felt >> it was too much magic. I don't want to torpedo pipes on over-reaching. But >> without feedback from other

Re: [PHP-DEV] wiki maintenance: Apr 3rd, 15:00 UTC

2025-04-03 Thread Derick Rethans
Hi, The actual downtime was about 45 seconds, and the wiki is now running on the new host. Most of the requests seem to be from AI bots and crawlers though :-/. Please let me (and systems@) know if you encounter any problems. cheers, Derick On Wed, 2 Apr 2025, Derick Rethans wrote: > Hi! >

Re: [PHP-DEV] Re: [VOTE] Marking return values as important (#[\NoDiscard])

2025-04-03 Thread Tim Düsterhus
Hi Am 2025-03-19 15:01, schrieb Volker Dusch: Tim will take care of finalizing the implementation in the coming days. The implementation was merged yesterday and the nightly tests of Symfony / PHPUnit / Composer exposed that the `LOCK_UN` case of `flock()` was not considered when applying th