4 ms·
C++'s templates are more expressive than Rust's generics 80/20 rule applies here. 80% of the boilerplate can be eliminated with 20% of the expressiveness.
by stcredzero 8y ago
C++'s templates are more expressive than Rust's generics
80/20 rule applies here. 80% of the boilerplate can be eliminated with 20% of the expressiveness.
- burntsushi 8y agoYes. I agree. Some might even argue that this applies to Go itself: its builtin generics get you a lot without bringing in the full baggage of user-defined generics. There's really nothing in my comment that suggests I think otherwise, so I'm a bit confused by your comment.
- stcredzero 8y agoI'm expanding on your comment about trade-offs. I tend to like nuanced views of cost-benefit trade-offs in language design. It is a complicated subject, after all.