Reimplementing the bulk of std.meta iteratively

Stefan Koch uplink.coder at googlemail.com
Thu Oct 8 13:27:50 UTC 2020


On Thursday, 8 October 2020 at 13:19:48 UTC, Adam D. Ruppe wrote:
> On Thursday, 8 October 2020 at 13:12:22 UTC, Andrei 
> Alexandrescu wrote:
>> Less flexible during compilation, more flexible at runtime.
>
> With my little lib that uses string lambdas for templates:
>
> pragma(msg, reified!q{
>         // string template lambda
>         a.sizeof == 4
> }.run!(types =>
>         types.filter!(a => a) // normal std.algorithm!
> ).over!(string, int, float, Object));

please post the source of your lib.
Benchmark is incoming.


More information about the Digitalmars-d mailing list