Re: [RFC] First-class callable syntax

From: Date: Tue, 25 May 2021 12:57:26 +0000
Subject: Re: [RFC] First-class callable syntax
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-114583@lists.php.net to get a copy of this message
On Fri, May 21, 2021 at 11:09 AM Andreas Leathley <a.leathley@gmx.net> wrote: > [...] > > About the bikeshedding: Using "..." as a symbol does make sense to me, > as variadic unpacking/variadic arguments have a similar connotation > (referring to an unknown/arbitrary amount of elements). * was also > suggested (as in "somefunction(*)" instead of "somefunction(...)"), and > I like that too - * in regex is any amount of elements (even zero), and > ? is exactly one placeholder in SQL. As many PHP developers know regex > and SQL this would make PFA code a lot easier to understand even if > someone is not that familiar with it yet. > FWIW: In this context, ? and * remind me of shell wildcards (used by glob() and fnmatch()), which makes sense too. Also, at least one person is opposed to "...". -- Guilliam Xavier

« previous php.internals (#114583) next »