[PHP-DEV] Infrastructure help

2021-05-14 Thread Tom Van Looy via internals
Hi internals! If you can use some extra hands to work on PHP's infrastructure (maintenance, migrations, monitoring, ...) I would like to offer my help. I'm a sysadmin in my day job so this should be stuff that is close to my comfort zone. Who should I talk to or what platforms should I join? I

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Larry Garfield
On Thu, May 13, 2021, at 3:30 PM, Sara Golemon wrote: > On Thu, May 13, 2021 at 2:31 PM Andreas Hennings > wrote: > > > 1. Serializing: > > But outside of the above cases it should be technically possible, or not? > > > > > I suspect that the limitations you cite make any kind of general > serial

[PHP-DEV] [VOTE] Add IntlDatePatternGenerator

2021-05-14 Thread Mel Dafert
Hi Internals, I have opened the vote on https://wiki.php.net/rfc/intldatetimepatterngenerator. I will close it on 2021-05-28. For previous discussion see https://externals.io/message/113831 and https://externals.io/message/114124. Regards, Mel -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] Re: [RFC] Partial function application

2021-05-14 Thread Mark Randall
On 25/04/2021 20:25, Larry Garfield wrote: Discuss. There has been intense discussion in R11 about how the ? token applies to missing or variadic arguments. The root of the concern is that in the current proposal, ? applies as either a placeholder for a single replacement, or 0-or-more vara

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Aaron Piotrowski
> On May 14, 2021, at 4:18 PM, Mark Randall wrote: > > > Passing more arguments than the partial defines would result in an argument > count error. > I think it’s reasonable to allow passing more arguments to a partial since user-defined functions and closures allow this without error. Wh

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Mark Randall
On 14/05/2021 22:48, Aaron Piotrowski wrote: I think it’s reasonable to allow passing more arguments to a partial since user-defined functions and closures allow this without error. But only userland functions, a relic from when func_get_args was the only way to handle varaible numbers of arg

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Paul Crovella
On Fri, May 14, 2021 at 2:49 PM Aaron Piotrowski wrote: > > Consider `function foo(int $x, int $y, int $z) {}` with a partial defined as > `$partial = foo(?, 42)`. > > If the partial is called as `$partial(73, 8)`, should 8 be forwarded to `$z` > or should the call error as providing too few arg

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Aaron Piotrowski
> On May 14, 2021, at 6:09 PM, Paul Crovella wrote: > > On Fri, May 14, 2021 at 2:49 PM Aaron Piotrowski wrote: >> >> Consider `function foo(int $x, int $y, int $z) {}` with a partial defined as >> `$partial = foo(?, 42)`. >> >> If the partial is called as `$partial(73, 8)`, should 8 be for

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Larry Garfield
Mark Randall: > Based on discussions in R11 there seems to be broad agreement that ? > should represent a single argument, and ...? should represent everything > else (including no arguments). This is incorrect. There were a few people arguing for that, but there was far from a consensus on t

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Mark Randall
On 15/05/2021 01:00, Larry Garfield wrote: I can't speak for the others, but I could tolerate making "more than one extra ? beyond the end of the parameter list is an error", potentially, as at that point they're redundant. But if a function has, say, 4 params, then fourParams(1, 3, ?) is a conve

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Aaron Piotrowski
> On May 14, 2021, at 7:00 PM, Larry Garfield wrote: > > Is that actually going to come up? Given that PHP functions (at least > user-space ones) accept extra trailing arguments and just let them fall off, > I would *expect* a closure that way to do the same. Named arguments continue > tha

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Larry Garfield
On Fri, May 14, 2021, at 7:20 PM, Aaron Piotrowski wrote: > > > On May 14, 2021, at 7:00 PM, Larry Garfield wrote: > > > > Is that actually going to come up? Given that PHP functions (at least > > user-space ones) accept extra trailing arguments and just let them fall > > off, I would *expect

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Aaron Piotrowski
On May 14, 2021, at 7:36 PM, Larry Garfield wrote: > > On Fri, May 14, 2021, at 7:20 PM, Aaron Piotrowski wrote: >> >>> On May 14, 2021, at 7:00 PM, Larry Garfield wrote: >>> >>> Is that actually going to come up? Given that PHP functions (at least >>> user-space ones) accept extra trailing

Re: [PHP-DEV] [RFC] Partial function application

2021-05-14 Thread Hossein Baghayi
> Requiring additional trailing argument placeholders or adding an > additional token `...?` unnecessarily complicates things, burdens the > user, and only serves to further promote misunderstanding. > > Providing ? as a means of placeholder for some arguments and ignoring the rest could complicate

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-14 Thread Niklas Keller
Hey all, please remember that you can also use php -r to quickly evaluate expressions, e.g. generating a random password: php -r 'var_dump(bin2hex(random_bytes(16)));' I'm in favor of removal without readline. Best, Niklas Rowan Tommins schrieb am Mi., 12. Mai 2021, 22:46: > On 12/05/2021 17