01-08-2015, 08:04 AM
They are indeed useless. I think they are also pretty confusing and render code as less easy to read.
For example, why use a forloop like this:
When you can simply, and more readably do this:
For example, why use a forloop like this:
Code:
list.forEach(i -> i.invokeMethod());
When you can simply, and more readably do this:
Code:
for(int i : list){
i.invokeMethod();
}