Re: [PHP-DEV] Uniform Function Call Syntax

2025-04-04 Thread Tim Düsterhus
Hi Am 2025-04-04 03:52, schrieb Yakov Lipkovich: One thing I'm unsure of is what happens if an imported static function has the same name as a member function. Larry already linked to the Pipe-Operator thread, which tries to solve something similar. Nevertheless, I'd like to note that resol

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