DIP23 Counter Proposal
Steven Schveighoffer
schveiguy at yahoo.com
Thu Feb 7 16:31:14 PST 2013
On Thu, 07 Feb 2013 16:55:01 -0500, Jonathan M Davis <jmdavisProg at gmx.com>
wrote:
> On Thursday, February 07, 2013 16:12:34 Steven Schveighoffer wrote:
>> On Thu, 07 Feb 2013 15:25:57 -0500, Jonathan M Davis
>> <jmdavisProg at gmx.com>
>>
>> wrote:
>> > struct S
>> > {
>> >
>> > @property int i;
>> >
>> > }
>>
>> struct S
>> {
>> mixin(boilerplateProperty("i"));
>> }
>>
>> I don't see this as a difficult problem to solve.
>
> Except that mixins are generally unacceptable in APIs, because they
> don't end
> up in the documentation. That means that this works only if you don't
> care
> about documentation. So, it's almost useless. Putting @property on there
> also
> looks better but isn't that big a deal. However, the lack of
> documentation
> _is_ a big deal.
True. But we can fix that just as easily (will ddoc currently parse
mixin-generated docs? If not it should).
-Steve
More information about the Digitalmars-d
mailing list