2 ms·
Template metaprogramming, variadic templates, integers as template parameters, etc. Even better would be constexpr user types as template parameters. How about
by zrm 8y ago
Template metaprogramming, variadic templates, integers as template parameters, etc. Even better would be constexpr user types as template parameters.
How about a language that embraces Turing-complete template metaprogramming as a thing to design in on purpose rather than something discovered after the fact to be more useful than anticipated. Have the utility without the ugly.
- steveklabnik 8y agoCool, thanks! I think you'll be happy with Rust eventually; a lot of this is coming, likely this year. It's on the roadmap, though that has to be approved first. (The thing that isn't yet is variadrics, not sure when that'll happen.) (And the reason it's taking such a while is that we are actually doing that...)