阅读更多

10顶
0踩

编程语言

原创新闻 Scala2.7.1.final 发布

2008-05-05 21:41 by 见习编辑 Eastsun 评论(0) 有2305人浏览
  Scala2.7.1final于今天发布,这个版本主要还是bug fixed,另外在语言上有两个小变化:
引用

Change in Scoping Rules for Wildcard Placeholders in Types
A wildcard in a type now binds to the closest enclosing type application.
For example List[List[_]] is now equivalent to the existential type
List[List[t] forSome { type t }]In version 2.7.0, the type expanded instead to
List[List[t]] forSome { type t }The new convention corresponds exactly to the way wildcards in Java are interpreted.


No Contractiveness Requirement for Implicits

The contractiveness requirement for implicit method definitions has been dropped. Instead it is checked for each implicit expansion individually that the expansion does not result in a cycle or a tree of infinitely growing types.


  目前看来Scala的更新比较快,今年就已经发布了两个final版.这是好事也是坏事,希望Scala能尽快稳定下来.
来自: http://www.scala-lang.org/index.html
10
0
评论 共 0 条 请登录后发表评论

发表评论

您还没有登录,请您登录后再发表评论

相关推荐

Global site tag (gtag.js) - Google Analytics