What’s the current state of closures in Java?

前端 未结 6 977
夕颜
夕颜 2020-12-10 11:41

Does anybody know, if closures will be in Java 7?

6条回答
  •  时光取名叫无心
    2020-12-10 12:05

    At Devoxx 2008, Mark Reinhold made it clear that closures will not be included in Java 7.


    Wait! Closures will be included in Java 7. Mark Reinhold announced this reversal at Devoxx 2009.


    Belay that! Closures (lambda expressions) have been deferred until Java 8. Follow Project Lambda (JSR 335) for more information.

提交回复
热议问题