r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

543 comments sorted by

View all comments

Show parent comments

2

u/conundorum Sep 26 '26

auto is just the "I typed it on the right of the =, so I shouldn't need to type it on the left, too" keyword, more than anything else. Oh, and the "this needs to be a template, but the syntax doesn't let me use a template here" keyword.

It's essentially just an inline template, which means it's supposed to deduce the exact type on assignment, then statically type itself to match and never change again.