3 ms·
> Rust has a "foreach" which is named for, working ok. Also ruby / python. Don't see the point of a C-style for loop in a modern language, reusing the keyword
by masklinn 5y ago
> Rust has a "foreach" which is named for, working ok.
Also ruby / python.
Don't see the point of a C-style for loop in a modern language, reusing the keyword is perfectly sensible (even more so as many which have both use the same keyword).
C# actively weirds me out every time from having both for and foreach, complete waste of brainspace.