[Vala] Public vapi contains reference to private setters



Hi.

When you have an auto-property like

public int64 minutes { get; private set; }

in your class, the generated public .vapi file gets the exact same
signature, i.e.

public int64 minutes { get; private set; }

Wouldn't it make more sense to just leave out the "private set" part
from the .vapi, i.e. have it just be

public int64 minutes { get; }

Is there any good reason to include the "private set"? It's not like a
consumer of your library can do anything useful with that information
anyway, right? Internal classes, for instance, are left out of the .vapi
file...

Regards,
Alexander K. Schrøder

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]