r/ProgrammerHumor • • 21d ago

Meme poohWritesCpp

Post image
945 Upvotes

95 comments sorted by

View all comments

Show parent comment

1

u/Qwertycube10 20d ago

I much prefer to use the type if it is not super long

2

u/AvidCoco 20d ago

The idea is that the type should come from the value not the assignee otherwise you might get implicit conversions.

With ints it doesn’t actually matter but it’s a good habit to get into.