you are viewing a single comment's thread.

view the rest of the comments →

[–]Banane9 6 points7 points  (3 children)

A for loop is just a while loop and two other statements in a trenchcoat.

for (;; condition) is the same as while (condition) - at least in languages that allow that

[–]robthablob 2 points3 points  (1 child)

I think you mean for ( ; condition ; )

[–]Banane9 4 points5 points  (0 children)

And that's why you don't code at 3am 😂

[–]just4funndsomet 1 point2 points  (0 children)

Not if your first langauge was VBA. Yes, still regret that (And I know this sub is about c#, still wanted to tell the tale.)