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
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
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
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
> 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
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
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
> 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
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
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
> 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
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
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
> 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
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
15 matches
Mail list logo