最终的 JDK 7 是否支持闭包?

发布于 2024-09-08 04:31:18 字数 577 浏览 3 评论 0原文

可能的重复:
Java 7 中的闭包

有很多关于 JDK 7 中的闭包的文章和网页。请记住,首先他们说 Closures 将出现在 JDK7 中,然后他们说不会出现 - 但那是在 2009 年初。然后在 2009 年底他们说他们将再次出现在 JDK7 中。现在,当我研究这个问题时,我有点困惑,我只是找不到一个明确的、绝对最终的说法。

我发现闭包现在位于 Project Lambda 的引擎盖下,但如果它会的话就不会包含在最终的 JDK 中(我只读过“提案”、“最终”等),

因为我目前正在写一篇论文,我想知道 JDK 7 中是否支持闭包,所以我需要完全确定,而且我也需要此信息的良好来源(尽可能新,可能来自 JDK 人员左右)。

非常感谢任何帮助!

Possible Duplicate:
Closures in Java 7

There are so many articles and web pages about Closures in JDK 7. As i remember, first they said that Closures will be in JDK7, then they said that they won't be - but that was in the beginning of 2009. Then in the end of 2009 they said that they will be in JDK7 again. Now as i'm researching this issue, i'm a bit confused and i just can't find a definite, absolutely final statement for this.

I found out that Closures are now under the hood of Project Lambda, but not if it will be included in the final JDK (i only read "proposal", "eventual" etc.)

As i'm currently writing a thesis where i want to tell if Closures are supported in JDK 7 i need to be completely sure and i also need a good source for this information (as new as possible, possibly from someone from the JDK staff or so).

Any help highly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

吃不饱 2024-09-15 04:31:18

不幸的是,我认为现在对你的问题没有任何绝对的答案。 JDK 7 可能有也可能没有 lambda。工作正在进行中,project-lambda 邮件列表上也有相当多的活动,但我认为 Oracle 目前还没有透露任何有关时间表或是否会包含 project-lambda 的信息。我认为它还有很长的路要走,还有很多设计问题需要解决。

您应该关注 lambda-dev 邮件列表并检查其档案,如果你想了解更多。

Unfortunately I don't think there is any absolute answer to your question right now. JDK 7 may or may not have lambdas. Work is in progress and there has been quite a bit of activity on the project-lambda mailing list, but I don't think Oracle is saying anything right now about the schedule or whether or not project-lambda will be included. It still has a long ways to go and a lot of design issues to be worked out, I think.

You should follow the lambda-dev mailing list and check its archives if you want to know more.

天冷不及心凉 2024-09-15 04:31:18

您当然可以期待“闭包将包含在 JDK 7 中”,因为此版本有 8 个里程碑里程碑 6 已包含在关闭中。 Lambda 项目也获得了批准

当 Milestone 6 包含闭包时,我们可以肯定它会与 JDK 7 一起包含

You can surely expect 'Closures will be included in JDK 7' because among 8 milestones for this release Milestone 6 has been included Closures. Project Lambda also got approved.

When Milestone 6 has included Closures, we can surely expect it will be with JDK 7

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文