现在的位置: 首页 > 综合 > 正文

Java走入了进化的死胡同?

2013年12月11日 ⁄ 综合 ⁄ 共 1103字 ⁄ 字号 评论关闭

最近,Bruce Eckel针对java写了一篇文章,文章指出java并不应该改变太多,也许妥善的来看,刚刚好不要再加新的特性了。他说,这样能阻止java变得庞大和臃肿。

文中列举c和c++的历史,阐述java当前的首要解决是稳定下来。

引用

Never mind that C has changed significantly in the last decade, with C99 , but his point is that Java is as useful as it is because of its stability, and the emergence of other languages on the JVM is more valuable than the existence of Java on the JVM.

别介意c语言基于c99而做的改变,他指出java的优势在于坚固,和其他语言相比,基于JVM的java是最可贵的。

之前JavaEye的热点讨论新闻: javapolis举行的关于JAVA7语言特性投票的结果 大多数人也有担忧Java语法会越来越复杂。

文章结尾如下:

引用

If Java is to be saved at all, it needs to become like C; a workhorse that you can rely upon. In fact, any future changes to the language need to be things that simplify and clarify the language and its use (say, fixing the classpath problem), and flesh out (for example) incomplete libraries that have languished (like JMF).

But we need to become especially conservative when considering major, fundamental language features like closures which, while they can be very appealing in theory, may have a cost that is too great in practice when they are forced into a language that values backward compatibility over the clarity of its abstractions.

如果java需要增加所有的好特性,它还需变得要像点c语言,但是你将看到一个臃肿的大工厂。实际上,我们要做的仅仅是保持语言的简化和明确。

长远的看,我们确实需要保守,我们要考虑语言的根本特性。要考虑引进的新特性和原始特性的兼容。 

抱歉!评论已关闭.