Re: [PHP-DEV] [VOTE] [RFC] Final-by-default anonymous classes

2024-01-15 Thread Nuno Maduro
On Mon, 15 Jan 2024 at 10:36, Daniil Gentili wrote: > Hi all, > > I've opened voting for the final-by-default anonymous classes RFC: > https://wiki.php.net/rfc/final_by_default_anonymous_classes > > Regards, > > Daniil Gentili. > Hi Daniil, Thank you for your work on this RFC. In my opinion, th

Re: [PHP-DEV] Request karma privileges to vote on PHP RFCs

2023-07-05 Thread Nuno Maduro
On Wed, 5 Jul 2023 at 01:36, Kalle Sommer Nielsen wrote: > Hi Nuno > > Den tirs. 4. jul. 2023 kl. 22.30 skrev Nuno Maduro >: > > > > Hi Internals, > > > > I am writing to request karma privileges to vote on PHP RFCs. > > > > For those who

[PHP-DEV] Request karma privileges to vote on PHP RFCs

2023-07-04 Thread Nuno Maduro
Hi Internals, I am writing to request karma privileges to vote on PHP RFCs. For those who don't know me, my name is Nuno Maduro <https://twitter.com/enunomaduro>, and I am a member of the Laravel <https://github.com/nunomaduro/> core team. I have been involved in developin

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-04-28 Thread Nuno Maduro
; > > > After some discussion, I put it on hold to ensure that it was compatible > > with the other discussion floating about around an alternate syntax for > > multi-line closures that did auto-capture. It's important that the > syntax > > of both proposals is

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-26 Thread Nuno Maduro
;>> > >>>> 2021-03-25 17:49 GMT+01:00, Mike Schinkel : > >>>>>> On Mar 25, 2021, at 11:22 AM, Olle Härstedt > > >>>>>> wrote: > >>>>>> > >>>>>> 2021-03-25 16:02 GMT+01:00, Mike Schinkel : >

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures andshortfunctions take 2

2021-03-25 Thread Nuno Maduro
Hi, Concerning the comments about what's exactly "auto-captured" by the scope of a multi-line short closure, we will be just reusing the "auto-capture" feature that already exists in one-line short closures. Therefore, this RFC doesn't have plans on changing the way "auto-capture" already works in

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-25 Thread Nuno Maduro
Hi, Thank you for the feedback on this thread so far. Programmers are opinionated, therefore you will find developers that see themselves using this RFC and others who don't. Just like "Fibers", "Type-hints", or any other feature in the language really. The reason why we believe the vast majority

Re: [PHP-DEV] Alias for `int|float`

2020-11-09 Thread Nuno Maduro
Agree with what has been said. We probably should leave this "alias" discussion to a near future where people would be able to create their own types like so: ```php type Number = Foo|Bar; ``` - Nuno On Mon, 9 Nov 2020 at 16:25, Sara Golemon wrote: > On Sun, Nov 8, 2020 at 11:09 AM Eugene Sid

Re: [PHP-DEV] [RFC] Short-function syntax

2020-11-04 Thread Nuno Maduro
Hey Larry, In my vision, this proposal is a good addition to PHP exactly as stated in this pull request (https://github.com/php/php-src/pull/6221): where only the "=> expr;" is introduced, and not the "fn". For visual consistency in the future of PHP functions/methods, I think it's important to d

Re: [PHP-DEV] RFC: Support for multi-line arrow functions

2020-11-03 Thread Nuno Maduro
Hey internals, Thank you for the feedback on this thread so far. I think a detailed RFC will help to clarify the proposal and reasoning behind the chosen syntax. And after that, we can keep discussing the proposal. So I can move forward, do you mind giving me the necessary karma to create RFCs?

[PHP-DEV] RFC: Support for multi-line arrow functions

2020-10-03 Thread Nuno Maduro
Hey internals, A few days ago I opened a pull request that adds support for multi-line arrow functions in PHP: https://github.com/php/php-src/pull/6246. As you may already know, PHP 7.4 has introduced one-liner arrow functions (aka short closures). Now, this pull request adds the possibility of