为什么Java 7中没有本机属性? [英] Why will there be no native properties in Java 7?

查看:156
本文介绍了为什么Java 7中没有本机属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何合理的理由,为什么本机属性不会成为Java 7的一部分?

Is there any rational reason, why native properties will not be part of Java 7?

推荐答案

在Java中执行正确属性并不容易。 RémiForax的工作特别有助于弄清楚这可能是什么样子,并揭示了许多必须处理的陷阱。

Doing properties "right" in Java will not be easy. Rémi Forax's work especially has been valuable in figuring out what this might look like, and uncovering a lot of the "gotchas" that will have to be dealt with.

同时, Java 7已经花了太长时间。关闭辩论是一个巨大的,有争议的分心,浪费了很多心灵力量,可以用来开发广泛的支持共识的功能(如属性)。最终,决定限制模块化的主要变化(Project Jigsaw)。该语言只考虑小变化(在Project Coin下)。

Meanwhile, Java 7 has already taken too long. The closures debate was a huge, controversial distraction that wasted a lot of mind-power that could have been used to develop features (like properties) that have broad consensus of support. Eventually, the decision was made to limit major changes to modularization (Project Jigsaw). Only "small change" is being considered for the language (under Project Coin).

JavaFX拥有漂亮的属性支持,因此Sun清楚地了解属性的价值并且知道如何实施它们。但是,受到JavaFX属性的破坏,开发人员不太可能满足于Java中半生不熟的实现。如果他们值得做,他们值得做对。

JavaFX has beautiful property support, so Sun clearly understands the value of properties and knows how to implement them. But having been spoiled by JavaFX properties, developers are less likely to settle for a half-baked implementation in Java. If they are worth doing, they are worth doing right.

这篇关于为什么Java 7中没有本机属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆