TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Scala is Not Java Glue

4 点作者 insraq超过 11 年前

3 条评论

laureny超过 11 年前
&gt; And it is widely agreed that Scala is much less verbose and easier to work with than Java.<p>&gt; ...<p>&gt; - it [Scala] can be verbose sometimes,<p>&gt; - Second problem is its learning curve. Scala is not easy to learn: the language has a huge feature set.<p>&gt; - Scala’s IDE support is much less mature than Java.<p>So maybe Scala is not that less verbose nor that much easier to work with than Java after all.<p>I think the article contradicting itself on these points is a great illustration of why Scala never became mainstream. Scala certainly offers advantages over Java (I love the traits, the implicit conversions and case classes) but it also comes at a significant cost (feature set and surface area of the language, mediocre IDE support compared to Java, slow compilation, terrible backward compatibility story, feature creep, etc...).<p>Also, these arguments do not support just the idea that Scala is not a glue for Java but the more general idea that Scala is not intrinsically superior to Java, which is why it still has a minuscule mind share on the JVM[1].<p>[1] <a href="http://www.indeed.com/jobtrends/scala%2C+java.html" rel="nofollow">http:&#x2F;&#x2F;www.indeed.com&#x2F;jobtrends&#x2F;scala%2C+java.html</a>
评论 #6707432 未加载
seglo超过 11 年前
I think one of the biggest learning hurdles when coming from Java is getting used to using the functional collection types. I remember when C# first introduced linq-to-objects my reactions went from disgust, to fear, to total and utter acceptance and &quot;how did I get anything done without this!&quot;
Garbage超过 11 年前
I have personally found IntelliJ&#x27;s Scala support quite good. Of course it&#x27;s not as good as Java, but it&#x27;s good. I am using EAP release BTW.