3 ms·
> The only down side is removed compatibility with other languages like C and C++ and C#, locking in the app to a specific language more. Using a Stream instea
by hepta 9y ago
> The only down side is removed compatibility with other languages like C and C++ and C#, locking in the app to a specific language more.
Using a Stream instead of a for loop does very little to make your code incompatible with C. It is already pretty much incompatible (modulo JNI).
What I mean is: if you want something that looks like C just use that, there is no gain in not learning new constructs just because older languages did not have them.