Re: [PHP-DEV][RFC][DISCUSSION] Add grapheme_levenshtein function

2025-03-24 Thread Tim Düsterhus
Hi Yuya Am 2025-03-16 02:12, schrieb youkidearitai: I created the RFC page for grapheme_levenshtein. https://wiki.php.net/rfc/grapheme_levenshtein I would like go to voting at two weeks if any comment is nothing. If any comment, feel free to comment. My only comment would be that you forgot t

Re: [PHP-DEV] Re: RFC: short and inner classes

2025-03-24 Thread Rowan Tommins [IMSoP]
On 24 March 2025 09:20:03 GMT, "Alexandru Pătrănescu" wrote: >On Sun, Mar 23, 2025 at 5:20 PM Larry Garfield >wrote: > >> >> So, how would nested classes compare to fileprivate, in terms of ability >> to solve the problem space? As I understand it, the goal is: >> >> 1. Classes that can be i

Re: [PHP-DEV] RFC: short and inner classes

2025-03-24 Thread Larry Garfield
On Mon, Mar 24, 2025, at 3:47 AM, Rob Landers wrote: > On Sun, Mar 23, 2025, at 16:17, Larry Garfield wrote: >> I've been following this thread with interest, and at the moment I'm >> honestly undecided. I certainly see the use cases for this functionality >> (whatever it gets named), but as a

Re: [PHP-DEV] Re: Constructor property promotion for final properties

2025-03-24 Thread Daniel Scherzer
On Mon, Mar 24, 2025 at 11:22 AM Larry Garfield wrote: > > To answer the original question: I'm not against this change, but as it is > a syntax change, I think it does warrant an RFC, even if it's a small/easy > one. That's a good way to flesh out the edge cases like that. > > --Larry Garfield

Re: [PHP-DEV][RFC][DISCUSSION] Add grapheme_levenshtein function

2025-03-24 Thread youkidearitai
2025年3月25日(火) 3:21 Tim Düsterhus : > Hi Yuya > > Am 2025-03-16 02:12, schrieb youkidearitai: > > I created the RFC page for grapheme_levenshtein. > > https://wiki.php.net/rfc/grapheme_levenshtein > > I would like go to voting at two weeks if any comment is nothing. > > > > If any comment, feel fre

[PHP-DEV] [RFC] [Discussion] Final promoted properties

2025-03-24 Thread Daniel Scherzer
Hi internals, I'd like to start the discussion for a new RFC about allowing final promoted properties. You can see some preliminary discussion at < https://externals.io/message/126475>, but this is now an official RFC. * RFC: https://wiki.php.net/rfc/final_promotion * Implementation: https://gith

Re: [PHP-DEV] Feedback for nullc Idea

2025-03-24 Thread Robert Chapin
On 3/23/2025 11:10 AM, Larry Garfield wrote: I'm not sure it justifies a new pseudo-function language construct. Fair enough.  Thank you for the feedback. On 3/23/2025 2:37 PM, Rowan Tommins [IMSoP] wrote: It's telling that all your examples with ?? put a value other than null on the right-ha

Re: [PHP-DEV] PHP True Async RFC - Stage 2

2025-03-24 Thread Edmond Dantes
> > You're cheating again - you've put an extra pair of brackets around one > expression and not the other, and assumed they'll work differently, but that's > not the grammar you proposed. > Why am I cheating? > spawn (getClosure()); This is an honest statement, provided that the second parenthese

Re: [PHP-DEV] Re: RFC: short and inner classes

2025-03-24 Thread Alexandru Pătrănescu
On Sun, Mar 23, 2025 at 5:20 PM Larry Garfield wrote: > > So, how would nested classes compare to fileprivate, in terms of ability > to solve the problem space? As I understand it, the goal is: > > 1. Classes that can be instantiated only by the class that uses them. > 2. But can be returned fro

Re: [PHP-DEV] Feedback for nullc Idea

2025-03-24 Thread Aimeos | Norbert Sendetzky
On 23.03.25 19:37, Rowan Tommins [IMSoP] wrote: I'm sympathetic to the problem you're trying to solve - the precedence of ?? isn't always helpful - but I'm not sure I like the proposed solution, for 3 reasons. 1) The name "nullc" is over-shortened and cryptic. The "c" looks almost like an acc