Re: [PHP-DEV] Interruptions

2018-09-26 Thread Marcos Passos
Have you tried generators? It looks like you are trying to implement coroutines. You can learn more about cooperative multitasking in PHP on this awesome post written by Nikic: https://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html - Marcos On Wed, Sep 26, 2018

[PHP-DEV] Interruptions

2018-09-26 Thread David Rodrigues
I do not know if I can get the same result with the current PHP features without taking many turns. So I thought of a feature that I'm initially calling "interruptions" (similar to those that occur on a CPU). Nowadays we have the Exceptions, which stop the execution of a function and initiate a

Re: [PHP-DEV] Re: Pre proposal for "Class extension functions"

2018-09-26 Thread Rasmus Schultz
On Mon, Sep 24, 2018 at 11:24 PM Andrew Gromov wrote: > > Bring a little Javascript into PHP? > > In fact, I looked at Kotlin :) Kotlin does not modify classes. This sort of thing is sound in compiled languages like Kotlin and C#, where this is really syntactic sugar for calling user-defined

Re: [PHP-DEV] Pre proposal for "Class extension functions"

2018-09-26 Thread Sebastian Bergmann
On 9/25/18 10:48 PM, Sara Golemon wrote: > I've been back-burnering this for a few days and I'm with Stas. I > don't like this proposal because it adds complexity with relatively > little benefit. I only see problems (mostly due to added complexity) and no benefits. -1 from me. -- PHP

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2018-09-26 Thread Mathieu Girard
This is a great news ! At AFUP (French Php User Group) we all wanted to +1. Thanks for your work on this Le mer. 26 sept. 2018 à 15:46, Nikita Popov a écrit : > On Tue, Sep 11, 2018 at 9:05 AM Bob Weinand wrote: > > > Hey, > > > > As announced, we are starting the vote on typed properties

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2018-09-26 Thread Ivan Enderlin
On 26.09.18 15:46, Nikita Popov wrote: On Tue, Sep 11, 2018 at 9:05 AM Bob Weinand wrote: Hey, As announced, we are starting the vote on typed properties today. The voting period is two weeks, until sometime in the evening on Tuesday 25-09-2018. Please find the RFC at

[PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2018-09-26 Thread Nikita Popov
On Tue, Sep 11, 2018 at 9:05 AM Bob Weinand wrote: > Hey, > > As announced, we are starting the vote on typed properties today. > > The voting period is two weeks, until sometime in the evening on Tuesday > 25-09-2018. > > Please find the RFC at https://wiki.php.net/rfc/typed_properties_v2. > >