DIP idea: q{}-inspired block mixins
Stefan Koch
uplink.coder at googlemail.com
Thu Jun 11 13:20:43 UTC 2020
On Thursday, 11 June 2020 at 00:20:35 UTC, Q. Schroll wrote:
> On Wednesday, 10 June 2020 at 23:51:45 UTC, Q. Schroll wrote:
>
> About this:
>
>> enum RW(string typeName, string myname) = "
>> mixin[tName = \"%s\", name = \"%s\", _name = \"_%s\"]
>> {
>> ...
>> }
>> ".format(typeName, myname, myname);
>
> It shouldn't be a template but rather a function. (For Stefan)
std.format.format is mighty expensive ;)
your proposal would make that a built-in right?
More information about the Digitalmars-d
mailing list