you said exactly that when you said the only people who don't want them are people who don't understand them.
Now you're putting words in my mouth. I did not say that. I may have been unclear about what I meant and you understood me incorrectly. I basically said that the arguments I've heard for not including closures are based on false assumptions or misunderstandings. Just read this list. People are saying they don't want closures because "closures are just function pointers" or "closures are just a fancy way to do iteration" or "closures will just complicate the language". When people make these kinds of arguments, one can say with reasonable certainty that they don't understand closures. Closures are far more than function pointers and closures can be used for iteration but they're not limited to that and closures can simplify the Java language a great deal.
Instead of trying to put words in my mouth, please explain, why are closures inappropriate for Java? |