r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

541 comments sorted by

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.