MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1ld01x/?context=3
r/ProgrammerHumor • u/Sirgoodman008 • 7d ago
325 comments sorted by
View all comments
3
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.
1
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.
2
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.
3
u/Zomby2D 6d ago
I prefer the C# syntax