Re: [PHP-DEV] RFC: Nested Classes (was: short and inner classes)

2025-04-05 Thread Rob Landers
On Wed, Apr 2, 2025, at 07:54, Viktor Khramov wrote: > Hi Rob. > The examples in this RFC only describe usage within classes as far as I can > see. > Does this finally solve the factory methods issue? > https://externals.io/message/126452 > > пн, 31 мар. 2025 г. в 23:38, Rob Landers : >> __ >> O

Re: [PHP-DEV] RFC: Nested Classes (was: short and inner classes)

2025-04-01 Thread Viktor Khramov
Hi Rob. The examples in this RFC only describe usage within classes as far as I can see. Does this finally solve the factory methods issue? https://externals.io/message/126452 пн, 31 мар. 2025 г. в 23:38, Rob Landers : > On Mon, Mar 31, 2025, at 21:45, Rob Landers wrote: > > Hello internals, > >

Re: [PHP-DEV] RFC: Nested Classes (was: short and inner classes)

2025-03-31 Thread Rob Landers
On Mon, Mar 31, 2025, at 21:45, Rob Landers wrote: > Hello internals, > > I have significantly revamped the RFC (again). Key changes to the RFC: > > 1. More (realistic) examples, > 2. Since enums are basically specialized classes, they are allowed to be > nested as well (hat tip to Reddit), > 3.

[PHP-DEV] RFC: Nested Classes (was: short and inner classes)

2025-03-31 Thread Rob Landers
Hello internals, I have significantly revamped the RFC (again). Key changes to the RFC: 1. More (realistic) examples, 2. Since enums are basically specialized classes, they are allowed to be nested as well (hat tip to Reddit), 3. Using backslash as the class separator, 4. Proper scoping (and sha