[PHP-DEV] [RFC] Increment/Decrement Fixes

2020-03-01 Thread Rowan Tommins
Hi all, Following my thread a couple of weeks ago, I would like to put forward an RFC to fix some inconsistencies with the behaviour of the ++ and -- operators: https://wiki.php.net/rfc/increment_decrement_fixes Note that this RFC focusses on three specific cases which I think could be

[PHP-DEV] Re: [RFC] Userspace operator overloading

2020-03-01 Thread Andrea Faulds
Hi Jan, jan.h.boeh...@gmx.de wrote: On 15/02/2020 22:05, jan.h.boeh...@gmx.de wrote: How many of you would prefer a interface solution for operator overloading? I wonder if the RFC voting should include the option to choose between either the magic method approach (with the syntax proposed in

[PHP-DEV] Re: Support rewinding of generators

2020-03-01 Thread Andrea Faulds
Hi again, Andrea Faulds wrote: I am not sure if I think this is a good idea… for one thing it may not be necessary to add support in core for this, because you could easily write a userland Iterator class that wraps a generator-returning closure and (re-)invokes it for you. If you do it

[PHP-DEV] Re: Support rewinding of generators

2020-03-01 Thread Andrea Faulds
Hi, Nikita Popov wrote: There is a relatively simple (at least conceptually) way to make generators rewindable: Remember the original arguments of the function, and basically "re-invoke" it on rewind(). I'm wondering what people think about adding this functionality. I think the main argument

[PHP-DEV] [VOTE] get_debug_type

2020-03-01 Thread Mark Randall
Greetings, I have opened voting on the get_debug_type RFC: https://wiki.php.net/rfc/get_debug_type Voting will run for 2 weeks and will close 2020-03-16. -- Mark Randall marand...@php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: