Re: [PHP-DEV] Revisiting Userland Operator Overloads

2021-08-11 Thread Mike Schinkel
> On Aug 11, 2021, at 5:25 AM, Jordan LeDoux wrote: > > I want to avoid this. :) The implementations in my actual math libraries are > much more thorough and thought out. This is an example. If people want to see > something that is closer to what would actually be done in a library, they > sh

Re: [PHP-DEV] Re: [RFC] Nullable intersection types

2021-08-11 Thread Rowan Tommins
On 11/08/2021 13:09, Nicolas Grekas wrote: On 10/08/2021 13:39, Nicolas Grekas wrote: > I will wait if I don't have the choice, but as many others reported, the > experience with 7.0 missing nullability was a pain. Apologies if you already did and I've forgotten, but could y

Re: [PHP-DEV] Re: [RFC] Nullable intersection types

2021-08-11 Thread Nicolas Grekas
> On 10/08/2021 13:39, Nicolas Grekas wrote: > > I will wait if I don't have the choice, but as many others reported, the > > experience with 7.0 missing nullability was a pain. > > Apologies if you already did and I've forgotten, but could you please > expand on what "pain" you are referring to he

[PHP-DEV] Re: [RFC] Nullable intersection types

2021-08-11 Thread Nicolas Grekas
> Hi everyone, > > as proposed by Nikita and Joe, I'm submitting this late RFC for your > consideration for inclusion in PHP 8.1. Intersection types as currently > accepted are not nullable. This RFC proposes to make them so. > > I wrote everything down about the reasons why here: > https://wiki.ph

Re: [PHP-DEV] Revisiting Userland Operator Overloads

2021-08-11 Thread Jordan LeDoux
On Wed, Aug 11, 2021 at 1:42 AM Mike Schinkel wrote: > > It that what you envision? To create a ComplexNumber() do I first need to > wrap in Real() and in Imaginary()? Or where you intending I could just > pass numeric literals? If yes, PhpStorm said your type hints did not allow > it. > > In t

Re: [PHP-DEV] Revisiting Userland Operator Overloads

2021-08-11 Thread Mike Schinkel
> On Aug 11, 2021, at 12:06 AM, Jordan LeDoux wrote: > > Here is a quick and dirty example of just the complex number use case. It > assumes that the operator overloads already are built in. A couple of > things of note: Excellent. Thank you for taking the time to do this. Very helpful. One th

Re: [PHP-DEV] RFC Implicit Async (iasync)

2021-08-11 Thread the mschop
On Mon, Aug 9, 2021 at 10:50 PM Olle Härstedt wrote: > > > > On Mon, 9 Aug 2021, 21:41 the mschop, wrote: >> >> Hi all, >> >> This is my first time writing to the internals mailing list, so please >> be patient with me. I would like to get feedback from you on the >> following idea. The idea migh