DIP23 Counter Proposal
Jonathan M Davis
jmdavisProg at gmx.com
Thu Feb 7 13:55:01 PST 2013
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.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list