90
you are viewing a single comment's thread
view the rest of the comments
[-] thebestaquaman@lemmy.world 3 points 3 weeks ago

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.

this post was submitted on 15 Sep 2025
90 points (100.0% liked)

Programmer Humor

38657 readers
201 users here now

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

Rules:

founded 6 years ago
MODERATORS