[PHP-DEV] Re: Improving PRNG implementation.

2020-12-19 Thread zeriyoshi
On 19.12.2020 at 11:26, Christoph M. Becker wrote: > RFC karma granted. Best of luck with the RFC! :) Thanks cmb. I have created a first draft of an RFC. I think I've covered all the necessary requirements, but I'd like to know if there are any problems. https://wiki.php.net/rfc/object_scope_prng

[PHP-DEV] [RFC] Add is_list(mixed $value): bool to check for list-like arrays

2020-12-19 Thread tyson andre
Hi internals, I've created the RFC https://wiki.php.net/rfc/is_list This adds a new function `is_list(mixed $value): bool` that will return true if the type of $value is array and the array keys are `0 .. count($value)-1` in that order. It's well-known that PHP's `array` data type is rare among

Re: [PHP-DEV] [RFC] #[NamedParameterAlias] Attribute

2020-12-19 Thread Benjamin Eberlei
On Sat, Dec 19, 2020 at 8:27 PM Rowan Tommins wrote: > On 19/12/2020 11:28, Benjamin Eberlei wrote: > > This is my take on parameter names now being public API, at its future > > potential for code maintenance, refactoring and backwards compatibility. > > > > https://wiki.php.net/rfc/named_parame

[PHP-DEV] Straw poll: Naming for `*any()` and `*all()` on iterables

2020-12-19 Thread tyson andre
Hi internals, I've created a straw poll for the naming pattern to use for `*any()` and `*all()` on iterables. https://wiki.php.net/rfc/any_all_on_iterable_straw_poll Background: The RFC https://wiki.php.net/rfc/any_all_on_iterable proposes adding only two functions, but more functionality actin

Re: [PHP-DEV] [RFC] #[NamedParameterAlias] Attribute

2020-12-19 Thread Rowan Tommins
On 19/12/2020 11:28, Benjamin Eberlei wrote: This is my take on parameter names now being public API, at its future potential for code maintenance, refactoring and backwards compatibility. https://wiki.php.net/rfc/named_parameter_alias_attribute Hi Benjamin, This sounds like a sensible featu

[PHP-DEV] [RFC] #[NamedParameterAlias] Attribute

2020-12-19 Thread Benjamin Eberlei
Hi internals, another RFC using attributes for 8.1. The patch itself for this is really small, but the implications require a detailed discussion and scrutiny. This is my take on parameter names now being public API, at its future potential for code maintenance, refactoring and backwards compatib

[PHP-DEV] Re: Improving PRNG implementation.

2020-12-19 Thread Christoph M. Becker
On 19.12.2020 at 07:33, zeriyoshi wrote: > On Wed, Dec 16, 2020 at 8:46 AM zeriyoshi wrote: > > I have created an account on the PHP.net wiki to create an RFC about this. > Can you grant me editing privileges? RFC karma granted. Best of luck with the RFC! :) Christoph -- PHP Internals - PHP R

[PHP-DEV] #[Deprecated] Attribute

2020-12-19 Thread Benjamin Eberlei
Hi internals, I have updated the RFC for a #[Deprecated] attribute that wasn't completed for PHP 8.0 due to time constraints and I am able to restart the discussion now. https://wiki.php.net/rfc/deprecated_attribute The following updates have been made: - focus on only method and function depre