7 ms·
Matching up the template strings with the values is a little wonky because there’s always one more string than value. But it’s pretty rare that you’d write lots
by tobr 4y ago
Matching up the template strings with the values is a little wonky because there’s always one more string than value. But it’s pretty rare that you’d write lots of different tagging functions, usually you write a generic one to use with many different types of templates. Tucking away complexity into a function to make nice and easy-to-use templates is a reasonable trade off I think.