Mixin templates are a pain at best, useless at worst for any non-trivial use case
Mike Franklin
slavo5150 at yahoo.com
Tue Jun 5 10:59:04 UTC 2018
On Tuesday, 5 June 2018 at 10:11:49 UTC, Ethan wrote:
> Exhibit A: https://run.dlang.io/is/a85Lbq
[..snip..]
> I submitted a bug with the above code, and it was "helpfully"
> shut down with a link to the documentation and workaround.
This looks like the bug report you are referring to:
https://issues.dlang.org/show_bug.cgi?id=18944
I understand that the specification defines the current behavior
and provides a workaround, but what's the justification for that
behavior? Is it hygiene?
I've been interested in improving mixins for reasons discussed in
the interpolated strings PR
(https://github.com/dlang/dmd/pull/7988) and this discussion
about library-implemented properties
(https://forum.dlang.org/post/mqveusvzkmkshrzwsgjy@forum.dlang.org).
Perhaps there's an opportunity here for a language improvement
that would help all of these use cases.
Mike
More information about the Digitalmars-d
mailing list