this post was submitted on 15 Sep 2025
81 points (88.6% liked)

Programmer Humor

38722 readers
29 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ugo@feddit.it 4 points 1 month ago (1 children)
[–] thebestaquaman@lemmy.world 3 points 4 weeks ago (1 children)

Thanks, that was a good read :)

However, my impression is that he's largely using the existence of templates and polymorphism as arguments that "we don't really care about type". I disagree: A template is essentially a generic type description that says something about what types are acceptable. When working with something polymorphic, I'll prefer ParentClass&, to indicate what kind of interface I'm working with.

Sure, it can be very useful to hide exact type information in order to generalise the code, but I think that's a weak argument for hiding all type information by default, which is what auto does.