4 ms·
D has very good support for this. here's a quick string templating function i wrote, for instance: https://gist.github.com/martindemello/2686640 https://gist.gi
by zem 13y ago
D has very good support for this. here's a quick string templating function i wrote, for instance: https://gist.github.com/martindemello/2686640 https://gist.github.com/martindemello/2686640
it calls a function at compile time to expand placeholders, and then compiles the generated string via the mixin() statement and carries on with the code. far more pleasant than c++.