Re: RFC: short and inner classes
From: Juris Evertovskis Date: Thu, 06 Mar 2025 12:49:49 +0000 Subject: Re: RFC: short and inner classes References: 1 2 3 4 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
On 2025-03-06 10:04, Tim Düsterhus wrote:- I don't understand the use ofI think the RFC was a bit unclear on this. Short classes can have methods. The short syntax just doesn't provide the ability to define them whilst defining the class. But otherwise they are indistinguishable from normal classes and they can have methods by inheriting them or by using traits. BR, Jurisprivate
properties. Given that the classes cannot have methods, they would be inaccessible, no?
Thread (102 messages)
« previous | php.internals (#126603) | next » |
---|