Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-10-04 Thread tyson andre
Hi Nikita Popov, > 1. There would be the possibility of having an interface Deque that is > backed by a VecDeque/ArrayDeque implementation. I'm not convinced this > would actually make sense, but I wanted to throw it out there, given that > the class is final (which is without any doubt the correc

Re: [PHP-DEV] Proposal: Shorthand initialization and destructuring of associative arrays

2021-10-04 Thread Sara Golemon
On Mon, Oct 4, 2021 at 2:15 PM Konrad Baumgart wrote: > > I have spare time this October, so I would happily get into php > interpreter by developing this. > Unfortunately my plans to have spare time FAILED and I'm not able to > contribute in the near future. > > I'm procrastinating writing slide

Re: [PHP-DEV] Unbreak git.php.net links?

2021-10-04 Thread Hans Henrik Bergan
here is an initial implementation: https://github.com/divinity76/git-php-net-redirector/blob/main/src/redirector.php it is just a minimum-effort implementation, anyone feel free to make something better (also i have no idea how the "p" argument is supposed to be parsed, so i just guessed) it passe

Re: [PHP-DEV] Proposal: Shorthand initialization and destructuring of associative arrays

2021-10-04 Thread Konrad Baumgart
> I have spare time this October, so I would happily get into php interpreter > by developing this. Unfortunately my plans to have spare time FAILED and I'm not able to contribute in the near future. > If something like this were to be introduced, I'd happily see it happen with > anonymous objec

Re: [PHP-DEV] Spam on bugs.php.net

2021-10-04 Thread Rowan Tommins
On 04/10/2021 16:29, Dan Ackroyd wrote: Github now supports Templates* for issue forms, these could be setup so users still select "Package affected", "PHP version" etc More interesting than templates is the overhauled Issues system Github have in beta, where you can define custom fields, the

Re: [PHP-DEV] Spam on bugs.php.net

2021-10-04 Thread Dan Ackroyd
On Mon, Oct 4, 2021 at 1:20 AM Stanislav Malyshev > I'm not sure if anyone is maintaining it right now - but > it'd be nice to have changes to counter that The code for bugs.php.net has a huge amount of tech debt and is a scary thing to touch. On Mon, 4 Oct 2021 at 09:46, Nikita Popov wrote: >

Re: [PHP-DEV] [RFC] Locale-independent case conversion

2021-10-04 Thread Bob Weinand
> Am 04.10.2021 um 12:08 schrieb Nikita Popov : > > On Thu, Sep 23, 2021 at 8:32 AM Tim Starling > > wrote: > >> Please consider my RFC for locale-independent case conversion. >> >> https://wiki.php.net/rfc/strtolower-ascii >> https://github.com/php/php-src/pull/

[PHP-DEV] Re: [RFC] Deprecate partially supported callables

2021-10-04 Thread Nikita Popov
On Thu, Sep 2, 2021 at 4:32 PM Nikita Popov wrote: > Hi internals, > > Currently, there are some callables that are accepted by the "callable" > type, but which cannot be used with $callable() syntax. This RFC proposes > to deprecate support for such "callables": > > https://wiki.php.net/rfc/depr

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-10-04 Thread Nikita Popov
On Tue, Sep 21, 2021 at 11:05 PM Levi Morrison via internals < internals@lists.php.net> wrote: > The name "deque" is used in the standard library of these languages: > > - C++: std::deque > - Java: java.util.Deque (interface) > - Python: collections.deque > - Swift: Collections.Deque (not stan

Re: [PHP-DEV] [RFC] Random Extension 3.0

2021-10-04 Thread Nikita Popov
On Thu, Sep 9, 2021 at 6:31 AM Go Kudo wrote: > Hi Nikita, sorry for the late reply. > > This is a difficult problem. For now, MT19937 is left for compatibility. > In other words, if you don't need compatibility, there is no benefit to > using it. > > What about implementing both a new MT and a c

Re: [PHP-DEV] [Pre-Vote Announcement] Move RNG functions Random Extension

2021-10-04 Thread Nikita Popov
On Wed, Sep 22, 2021 at 1:21 PM Go Kudo wrote: > The voting phase for the following RFCs will begin as soon as two weeks > have passed. > > https://externals.io/message/115975 > > I don't see any particular discussion, so I'm contacting you just in case. > I'm pretty neutral on this proposal. I

Re: [PHP-DEV] [RFC] Locale-independent case conversion

2021-10-04 Thread Nikita Popov
On Thu, Sep 23, 2021 at 8:32 AM Tim Starling wrote: > Please consider my RFC for locale-independent case conversion. > > https://wiki.php.net/rfc/strtolower-ascii > https://github.com/php/php-src/pull/7506 > > The RFC and associated PR ended up going some way beyond the original > scope, because

Re: [PHP-DEV] Proposal: Shorthand initialization and destructuring of associative arrays

2021-10-04 Thread Nikita Popov
On Mon, Sep 27, 2021 at 11:27 AM Konrad Baumgart wrote: > Hi everyone, > > I'd like to propose 2 syntactic sugars: > $array = [ => $data]; // the same as $array = ['data' => $data] > and > [ => $data] = $array; // the same as ['data' => $data] = $array > > My biggest use-case for this would be co

Re: [PHP-DEV] Allowing `(object)['key' => 'value']` in initializers?

2021-10-04 Thread Nikita Popov
On Sat, Sep 25, 2021 at 5:45 PM tyson andre wrote: > > Hi internals, > > In PHP 8.1, it is possible to allow constructing any class name in an > initializer, after the approval of > https://wiki.php.net/rfc/new_in_initializers > > ``` > php > static $x1 = new ArrayObject(['key' => 'value']); > ph

Re: [PHP-DEV] Static (factory) methods in attributes and initializers

2021-10-04 Thread Nikita Popov
On Mon, Sep 27, 2021 at 5:58 PM Andreas Hennings wrote: > Hello list, > > currently, the default mode for attributes is to create a new class. > For general initializers, with > https://wiki.php.net/rfc/new_in_initializers we get the option to call > 'new C()' for parameter default values, attrib

Re: [PHP-DEV] Spam on bugs.php.net

2021-10-04 Thread Nikita Popov
On Mon, Oct 4, 2021 at 1:20 AM Stanislav Malyshev wrote: > Hi! > > I notice that we have increased amount of spam coming in to > bugs.php.net. I'm not sure if anyone is maintaining it right now - but > it'd be nice to have changes to counter that - I see that anti-spam > measures exist on some fo

Re: [PHP-DEV] Unified ReflectionType methods

2021-10-04 Thread Nikita Popov
On Sun, Oct 3, 2021 at 3:42 PM G. P. B. wrote: > On Sat, 2 Oct 2021 at 00:54, Andreas Hennings wrote: > > > Hello list, > > I would like to propose new methods for ReflectionType, that would > > allow treating ReflectionNamedType and ReflectionUnionType in a > > unified way. > > This would elimi

Re: [PHP-DEV] [RFC] Allow null as standalone type

2021-10-04 Thread Nikita Popov
On Mon, Oct 4, 2021 at 5:33 AM Levi Morrison via internals < internals@lists.php.net> wrote: > On Sat, Oct 2, 2021 at 9:07 AM G. P. B. wrote: > > > > Hello internals, > > > > I'm proposing a new RFC to make 'null' usable as a standalone type. > > > > RFC: https://wiki.php.net/rfc/null-standalone-