mixin identifiers concept
Paul Backus
snarwin at gmail.com
Tue Feb 1 02:54:41 UTC 2022
On Tuesday, 1 February 2022 at 01:52:25 UTC, bachmeier wrote:
>
> You have to balance that (which in the absence of benchmarks or
> other empirical evidence is a theoretical problem) against the
> horrendous cost in terms of complexity of the language. It's
> not just the syntax - which would be a substantial burden for
> new users - but also understanding the details of what it's
> doing. It's hard to see this being worthwhile for only gains in
> compilation time.
This is a fair criticism of the original proposal. However,
allowing the standard string mixin syntax to be used for
identifiers in declarations, as suggested by Nick Treleaven in
[his reply][1], would bring the same benefits with significantly
less complexity.
[1]:
https://forum.dlang.org/post/aznmkielsozvfgrzehoc@forum.dlang.org
More information about the Digitalmars-d
mailing list