On Wed, Sep 8, 2010 at 2:07 AM, SK <[email protected]> wrote:

> On Tue, Sep 7, 2010 at 8:54 PM, David Simcha <[email protected]> wrote:
> >  The AutoImplement functionality in std.typecons is currently a class.
>  This
> > severely and unnecessarily limits its usefulness in the following cases:
> >
>
> Hi - Being poorly versed in mixins, I mentally picture the mess of
> preprocessor macro abuse.  Are mixins going to make phobos in this
> case easier to reason about and debug?


Yes, at least compared to the error-prone and verbose boilerplate code that
they're intended to replace.


> Do I ever get to see (and step
> though) the source that actually got compiled?
>

No, but the whole point is that the code will be less buggy in the first
place than manually written boilerplate code.


> I'd like to feel better that mixins are on *much* friendlier turf than
> macros.
>
>
They are.  For example, they have a concept of scope and work at the
semantic, rather than the textual, level.  For example, you don't need to
give mixins UGLY_ALL_CAPS_NAMES because they won't accidentally expand.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to