On 2025-03-06 10:04, Tim Düsterhus wrote:

- I don't understand the use of `private` properties. Given that the
classes cannot have methods, they would be inaccessible, no?

I 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,
Juris

Reply via email to