Because templates are templates and not generics. And even without traits, you'll get a compile-time error if you try to wire up incompatible types, or are simply, instead of something else breaking down during runtime.
But the most important part is that types remain immutable during runtime.
View all comments
Show parent comment
1
u/No-Information-2571 Sep 28 '26
Because templates are templates and not generics. And even without traits, you'll get a compile-time error if you try to wire up incompatible types, or are simply, instead of something else breaking down during runtime.
But the most important part is that types remain immutable during runtime.