miniblog.

← Back to all posts
24
I've heard of 'blub languages', where you don't realise that other languages have better abstractions until you've experienced them. I think the same thing happens with individual features. I've seen several C++ folks miss variadic generics in Rust, but I've not written enough C++ to feel it.

4 Comments

@wilfredh i mostly miss it from writing a lot of rust and not very much c++. template specialization as well for example you can do for specific types on a struct impl but a lot of metaprogramming you might want to on traits themselves is barred from being possible in rust
@wilfredh i think i agree with you that this is more a question of individual features rather than whole languages and furthermore that this is a more appropriate way to think about language change and exchange
assuming my understanding of variadic generics is correct, why can't you put the generics in a tuple? /gen if I'm not mistaken, that's how libraries usually solve it.
the number of items in tuple is limited, but I don't think I want to see like more than 3 generics in tuple, if it gets to that point I make a struct so I don't get confused about which parameter is what