声明:JavaEye新闻文章的版权属于JavaEye网站所有,严禁任何网站转载本文,否则必将追究法律责任!
最近,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语言,但是你将看到一个臃肿的大工厂。实际上,我们要做的仅仅是保持语言的简化和明确。
长远的看,我们确实需要保守,我们要考虑语言的根本特性。要考虑引进的新特性和原始特性的兼容。
文中列举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语言,但是你将看到一个臃肿的大工厂。实际上,我们要做的仅仅是保持语言的简化和明确。
长远的看,我们确实需要保守,我们要考虑语言的根本特性。要考虑引进的新特性和原始特性的兼容。


评论 共 28 条 发表评论
Frederick 2008-03-25 18:37
solonote 2008-01-29 20:32
fish2007 2008-01-20 19:46
ada_li_li 2008-01-17 10:47
对于新增加的语言特性,尤其是JDK1.5之后的变化,应该看到,是为Java EE开发服务的,而对于客户端以及移动终端来说,Java即使经过裁减, 也不占太多优势. 所以,JVM上的脚本语言才是方向.
neusun 2008-01-17 10:29
rendong 2008-01-16 23:07
Zmud 2008-01-16 09:21
kingtoon 2008-01-15 21:48
别人爱搞什么搞什么 只要你按照jdk标准来就行
而JVM是这个标准的一个平台
tcmak 2008-01-15 11:27
M$ 推出了 .Net 以後, 都大力去支持不同語言發展, 自己研發的語言又有, C#, F#, 支助學校開發 .Net 版的語言又有, Ruby, Scala. Sun 又做過什麼呢? 就只有 JRuby?
從來都沒有一種語言可以在任何情況下適用, 又何苦要 Java 加上不同的東西呢?
倒不如想想如何支援其他語言在 JVM 上運行, 以及和 Java 的 interoperability.
lonlyleo 2008-01-15 10:51
lemonzc 2008-01-14 15:39
Tin 2008-01-13 19:52
而更开放的让动态语言运行在JVM上可能是最理想的方向,因为JVM可是最牛的虚拟机。
JBeans 2008-01-13 11:04
neusun 2008-01-13 08:20
mooniscrazy 2008-01-11 23:46
我赞成所有这些进步。
还缺一个东西就是delegate和event,这两个东西很重要,能大大增加编程方便程度。不要说语法糖之类的废话。语法糖就更应该搞,不搞是脑子有病。没有改变虚拟机结构,给编程带来了方便,为什么不搞?
既然搞,就索性多搞一点,不要羞羞答答,做什么都比c#慢一步。
neusun 2008-01-11 14:58
搞不好也是几个权威的人在起关键的作用,这个无可厚非。真要对进化采取措施了!!!
beyondsky 2008-01-11 09:43
ken1984 2008-01-10 17:03
Norther 2008-01-10 14:35
uprush 2008-01-10 13:28