Enhancement: issue error on all public functions that are missing ddoc sections
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Mon Mar 23 11:58:08 PDT 2015
On 3/20/15 7:25 PM, Walter Bright wrote:
> On 3/19/2015 3:13 PM, Jeremy Powers via Digitalmars-d wrote:
>> A valid reason for doing things like this is future-proof
>> encapsulation. You
>> can change the internal foo to be something entirely different, and
>> the external
>> api never changes (assuming 'foo' is private).
>
> That's why D has properties. Fields can be replaced with property
> functions.
>
Replacing fields for properties and vice versa is an incompatible API
change.
-Steve
More information about the Digitalmars-d
mailing list