March 12, 2021 Appreciation for variadic templates and a nicely written article in the D Articles collection | ||||
---|---|---|---|---|
| ||||
Hi everyone, A note of appreciation. I changed a function to take a variable number of arguments. Immediately saw performance degradation in callers using it (in very tight loops). This seemed like a problem that would be right in D's wheelhouse. A couple of searches lead to a very nicely written article on Variadic Templates in the D Articles collection. Showed how straightforward this is in D. The resulting code was simple and performance was restored. Wonderful! The article: https://dlang.org/articles/variadic-function-templates.html Thanks all, --Jon |
Copyright © 1999-2021 by the D Language Foundation