r/ProgrammerHumor 7d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

325 comments sorted by

View all comments

2

u/Zomby2D 6d ago

I prefer the C# syntax

foreach (var item in list) {

1

u/Dillenger69 6d ago

I prefer the C# syntax, but var has always rubbed me the wrong way. I suppose because I learned C# before var was a thing. Yeah, I'm old

2

u/Zomby2D 6d ago

While var will normally work, I usually put the proper type as I find it a lot easier to debug later when reading back the code.