芊雅企服
软件更新资讯

Kotlin 1.0 Beta 3 发布基于 JVM 的编程语言

芊雅企服技术团队918 次浏览约 4 分钟读完

Kotlin 1.0 Beta 3 发布,此版本主要是要完成标准库开发,还有移除一些废弃的语言结构。同时还有一些 bug 修复,性能提升。此版本包括库,语言,IDE 和 Android 扩展方面的改进和修复。详细改进内容请看发行说明。

改进列表:

  • Library
    • increment deprecated in Progressions in favor of step property to Progressions,for-loops updated to refer to step
    • contains() and other similar extensions now accept supertypes of the element of the collection
    • Delegates.mapVal and mapVar, MapVal, MapVar, FixedMapVal, FixedMapVar are deprecated
    • String.toCharArray() introduced instead of String.getChars(); String.toCharList()deprecated
    • MutableCollection.removeAll(predicate: (T) -> Boolean) and similar for retainAlladded
    • sequence(initialValueFunction, nextValueFunction) doesn’t evaluate first value until it’s requested by sequence iterator
    • sequenceOf(Progression) deprecated
    • flatten operation for Sequence<Iterable<...>> added
  • Langauge
    • No references to PropertyMetadata are generated in the byte code
    • Suffixes to numeric literals, such as 1baz are prohibited
    • Comma-separated conditions in when without an argument are prohibited (KT-5143)
    • Annotation classes can’t be instantiated (KT-4391)
    • Arrays of annotations supported as annotation arguments (KT-10136)
    • Generic types in catch clauses (including reified T) are prohibited (KT-9816)
    • protected members are allowed in companion objects
    • Calls to non-@JvmStatic protected members of companion objects from subclasses are marked as errors (unsupported)
    • “…” is reserved as a token (KT-9708)
    • Enum entry can not be used as a type (KT-5401)
    • Enum.values is deprecated in favor of Enum.values()
    • private setters are now deprecated for open properties
    • Local sealed classes are deprecated
    • Use of uninitialized variables in lambdas / object literals / local functions is forbidden
    • Overriding setter cannot weaken visibility
    • Inner classes are no longer allowed inside enum entries
    • Implicit receiver smart casts are supported
    • Older deprecations have become errors

下载:

kotlin-compiler-1.0.0-beta-3595.zip

Kotlin 是一个基于 JVM 的新的编程语言,由 JetBrains 开发。

其主要设计目标:

  • 创建一种兼容Java的语言
  • 让它比Java更安全,能够静态检测常见的陷阱。如:引用空指针
  • 让 它比Java更简洁,通过支持variable type inference,higher-order functions (closures),extension functions,mixins and first-class delegation等实现。
  • 让它比最成熟的竞争对手scala”>Scala语言更加简单。

相关文章

软件更新资讯Firefox 135.0 发布

Firefox 135.0 现已发布,具体更新内容如下: New Firefox 翻译现在支持比以往更多的语言…

1db25d63924c2fff4d7feb76cf041519软件更新资讯2025年无人自助棋牌室还能不能做?2025年还能不能做共享茶室

2025年还能不能做共享茶室,其实很尴尬,毕竟经济很差。但是我们给的建议是,如果手上有闲钱,有合适的场地,这种…

22软件更新资讯共享茶室加盟好还是自营好?

共享茶室是一种新兴的商业模式,包括加盟和自营两种经营方式。那么,到底是选择共享茶室加盟还是自营更好呢?这个问题…

cd9e2de08dacbe576c20a768773a8972软件更新资讯成都共享棋牌室系统多少钱?成都开共享棋牌室为什么选择芊雅共享棋牌室系统

成都共享棋牌室系统的价格取决于您选择的具体系统和规模。不同的系统功能和设备不同,其价格也会有所不同。在成都,共…

1软件更新资讯厦门宝丹鹭共享空间平台上线,厦门共享茶室系统哪家好?

厦门宝丹鹭共享空间平台上线,主打商务接待场景,由芊雅共享茶室系统强力驱动。近期我们将实地参观本福建的共享空间,…

Gym man and woman push-up strength pushup with dumbbell in a crossfit workout软件更新资讯健身APP开发帮助用户解决各种健身问题

我们都知道每一个胖子都是资深的潜力股,可以看出身形的塑造改变的不单单是外边,更多的是气质,如今越来越多人都加入…

免费获取你的专属方案。

资深技术顾问一对一诊断需求,为你量身定制方案与报价。

  • 免费需求诊断与方案建议
  • 透明报价,工期明确
  • 现成方案与定制开发灵活组合
电话咨询135 0699 3986

信息仅用于顾问联系你,绝不外泄。

电话咨询免费获取方案

和技术顾问聊聊,免费拿方案。

说说你的行业和想法,顾问免费评估方案与报价。

电话咨询135 0699 3986一键拨打
微信号fzqianya
技术顾问微信二维码
微信扫一扫添加技术顾问,直接沟通需求截图保存后,在微信“扫一扫”中选择图片识别

不方便沟通?留下电话,顾问回电