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] [Discussion] Optional interfaces

2025-03-15 Thread Viktor Khramov
Hey Juris. I have a question about this feature. At the example blow interface A > { >public function x(Foo $foo); > } > > interface B > { >public function x(Bar $foo); > } > > class Test implements ?A, ?B > { > } > what would happen if both interfaces existed? пт, 14 мар. 2025 г. в

Re: [PHP-DEV] Concept: constructor overloading syntax sugar

2025-02-18 Thread Viktor Khramov
t; On 17 February 2025 14:39:42 GMT, Viktor Khramov > wrote: > >Hi! > > > >The point is here: > >https://gist.github.com/vhood/665418835e65be26d5a818fded92ab75 > > > >Static functions look awful and break the object's API. > > Personally, I think q

[PHP-DEV] Concept: constructor overloading syntax sugar

2025-02-17 Thread Viktor Khramov
Hi! The point is here: https://gist.github.com/vhood/665418835e65be26d5a818fded92ab75 Is it possible? May I create an RFC for this?