Java程序员对C#缺少什么感觉? [英] What do Java programmers feel is missing from C#?
问题描述
我可能正在打开一罐蠕虫,不想发动宗教战争,
但是......
Java在C#中工作时会错过Java程序员吗?
当然,除了很好的可移植性之外。 C#具有更多限制的跨平台可移植性(单声道)。
我正在考虑更多关于数据结构和表达算法的方法。
I may be opening a can of worms and don''t want to start a religious war,
but...
What features of Java do Java programmers miss when working in C#?
Other than, of course, great portability. C# has more limited
cross-platform portability (Mono).
I''m thinking more about data structures and ways to express algorithms.
推荐答案
mc写道:
mc wrote:
我可能正在打开一罐蠕虫而且不要想要开始宗教战争,
但是...
Java程序员在使用C#时会错过Java的哪些功能?
当然,除了很好的便携性之外。 C#具有更多限制的跨平台可移植性(单声道)。
我正在考虑更多关于数据结构和表达算法的方法。
I may be opening a can of worms and don''t want to start a religious war,
but...
What features of Java do Java programmers miss when working in C#?
Other than, of course, great portability. C# has more limited
cross-platform portability (Mono).
I''m thinking more about data structures and ways to express algorithms.
我在转换语句中有点喜欢掉落,但我是第一个承认它会导致无法读取的b $ b代码。
Java语言参考提到了一个叫做Duff'的设备,
,我从来没有真正理解过,而且C#可能会皱眉。无论如何,
。 :)
dleifker
I sort of liked fall-thru in switch statements, but I''m the first to
admit that it can lead to unreadable code.
The Java Language Reference mentions something called a Duff''s Device,
which I never really understood and which C# would probably frown on
anyway. :)
dleifker
" Dan Leifker" < dl ****** @ leifker.com写信息
新闻:KI ************************ ******@comcast.com。 ..
"Dan Leifker" <dl******@leifker.comwrote in message
news:KI******************************@comcast.com. ..
mc写道:
mc wrote:
>我可能会打开一罐蠕虫并且不要'我想开始一场宗教战争,但是......
在C#工作时,Java程序员会错过Java的哪些特性?
除了当然,很好的便携性。 C#具有更有限的跨平台可移植性(Mono)。
我正在考虑更多关于数据结构和表达算法的方法。
>I may be opening a can of worms and don''t want to start a religious war,
but...
What features of Java do Java programmers miss when working in C#?
Other than, of course, great portability. C# has more limited
cross-platform portability (Mono).
I''m thinking more about data structures and ways to express algorithms.
我在转换语句中有点喜欢直播,但我是第一个承认
它会导致无法读取的内容码。
I sort of liked fall-thru in switch statements, but I''m the first to admit
that it can lead to unreadable code.
实际上,我认为switch语句是C#中最尴尬的事情,
主要是因为它不像Fortran那样来自C的东西看起来像。
我希望C#采用Pascal案例陈述。
Actually, I think the switch statement is the most awkward thing in C#,
largely because it isn''t the Fortran-like thing from C that it looks like.
I wish C# had adopted the Pascal case statement.
mc写道:
mc wrote:
我可能会打开一罐虫子而不想开始宗教战争,
但是...
Java程序员在使用C#时会错过Java的哪些功能?
当然,除了很好的可移植性之外。 C#具有更多限制的跨平台可移植性(单声道)。
我正在考虑更多关于数据结构和表达算法的方法。
I may be opening a can of worms and don''t want to start a religious war,
but...
What features of Java do Java programmers miss when working in C#?
Other than, of course, great portability. C# has more limited
cross-platform portability (Mono).
I''m thinking more about data structures and ways to express algorithms.
我只是在美学上更喜欢Java。我认为Java是更简单的语言。
没有属性,没有定义的运算符,没有委托 - 对我而言
使一切更加清晰。我知道只有一种语言具有可比性
透明度 - C.
我也喜欢Java集合Api和一般API更多 - 只是偏好。
Java已经检查了异常,这使得处理异常更加容易 - 你很可能知道你可以期待哪些异常。
JavaDoc - 更清楚C#XML Docs,以及在我看来导致
质量更好的API描述。
我更喜欢Java严格的包/文件夹结构,以及不清楚的C#约定。
I am just esthetically prefer Java. I think Java is simpler language.
There is no properties, no defined operators, no delegates - for me it
makes everything more clear. I know only one language that is comparable
in transparency - C.
I also liked Java collections Api and general API more - just preference.
Java has checked exceptions and this makes dealing with exceptions more
easy - you mostly know which exceptions you can expect.
JavaDoc - is more clear that C# XML Docs, and in my opinion leads to
better quality API descriptions.
I prefer Java Strict package / folder structure to unclear C# conventions.
>
这篇关于Java程序员对C#缺少什么感觉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!