How safe would it be to use functional-java to add closures to a Java production project?
问题 I would love to use closures in Java. I have read that they may or may not make it into Java 7. But an open-source project called functional-java has implemented functional features including closures. How safe would it be to use such a library in an enterprise production app? Is there a better way to add closures to Java currently? 回答1: Closures will definitely not make it into Java 7, due to a lack of consensus around a single implementation. See here. The Functional Java library is