AIFeed

Kotlin 2.5.0 发布

AI summary

Kotlin 2.5.0 正式发布,Kotlin/Wasm 进入稳定阶段。主要亮点包括:语言层面在仅语法模式下稳定支持基于名称的解构、未使用返回值检查器以及改进的编译期常量;标准库新增用于简化 if 表达式常见模式的实验性函数,并实验性支持 Unicode 码点;Kotlin/JVM 支持 Java 28;Kotlin/Native 的 Swift 导出进入 Beta 并引入新 DSL;Kotlin Multiplatform 为多平台库提供新的发布格式;Kotlin/JS 支持 es2020 目标;Kotlin 编译器在 klib 编译期间的内联函数行为更加一致。

Translation(model translation, not the source's own text)

Kotlin 2.5.0 发布

Aleksandra Epanchintseva
Aleksandra Epanchintseva

Kotlin 2.5.0 版本已发布,Kotlin/Wasm 已稳定!以下是主要亮点:

  • 语言:仅在语法模式下稳定的基于名称的解构、未使用返回值检查器,以及改进的编译期常量。
  • 标准库:用于简化 if 表达式常见模式的新实验性函数,以及对 Unicode 码点的实验性支持。
  • Kotlin/JVM:支持 Java 28。
  • Kotlin/Native:Swift 导出进入 Beta 阶段,并配有新的 DSL。
  • Kotlin Multiplatform:多平台库的新发布格式。
  • Kotlin/JS:支持 es2020 目标。
  • Kotlin 编译器:在 klib 编译期间更一致的内联函数行为。

完整变更列表请参阅 Kotlin 2.5.0 新特性或 GitHub 上的发布说明。

我们推出了 Kotlin 安全通讯,这是一份关于 Kotlin 及其生态系统安全修复的月度摘要。

如何安装 Kotlin 2.5.0

最新版本的 Kotlin 已包含在最新版本的 IntelliJ IDEA 和 Android Studio 中。

要更新到新的 Kotlin 版本,请确保你的 IDE 已更新到最新版本,并在构建脚本中将 Kotlin 版本更改为 2.5.0。

如果你需要命令行编译器,请从 GitHub 发布页面下载。

如果你遇到任何问题:

  • 在 Slack 上寻求帮助(获取邀请)。
  • 向我们的问题跟踪器 YouTrack 报告问题。

随时了解最新的 Kotlin 特性!填写本文底部的表单订阅以接收 Kotlin 更新。⬇️

YouTrack 上的主要问题报告者

Andreas Malik(21 个问题)、liutikas(12 个问题)、Oliver O.(12 个问题)、Louis CAD(11 个问题)、MukjepScarlet(11 个问题)、Ian Brandt(10 个问题)、Julia McClellan(9 个问题)、来自 PayPal Cyber Security Team 的 Yu Bao(8 个问题)、Francesco Protopapa(8 个问题)、Robert Jaros(8 个问题)、Pau M(7 个问题)、József Bartók(7 个问题)、Troels Lund(7 个问题)、Zac Sweers(7 个问题)、Carter Jernigan(6 个问题)、Dmitry Stakhov(6 个问题)、Niklas Baudy(6 个问题)、Sterling Albury(5 个问题)、freya02(5 个问题)和 Mikhail Porotkin(5 个问题)。

外部贡献者

我们要感谢所有贡献者的拉取请求被纳入此版本:

AFH7233, anastabe, autonomousapps, bacecek, christianaurichzm, DevSrSouza, dewantawsif, findyourexit, gavr123456789, GeorgeChernyshov, gmjneko, GtechGovind, gw111zz, HamidRezaLS, ItsEmpa, kcolford, linhandev, lnteng, loadkrnis, marcowuethrich, maureenCindy, Maxerns, minavtafreshi, mole828, monomere, MukjepScarlet, murfel, napanch, phantom2291, Pitel, reuben, scaventz, sjrd, stsspu, sunnyboy33, tejasM17, ternbusty, tessoir, ugliansky, uny, vibingkevin, vladd-g, wordyarc, xxfast, ZacSweers, and zoobestik。

特别感谢我们的 EAP 冠军

  • Alexander Nozik
  • Anderson Lameck
  • Benoit Lubek
  • Bernd Prünster
  • Florian Schreiber
  • Jake Wharton
  • Johannes Svensson
  • Łukasz Wasylkowski
  • Mohamed Rejeb
  • Olaf Gottschalk
  • Rick Clephas
  • Robert Jaros
  • Sechaba Mofokeng
  • Sergey Chernov
  • Sterling Albury
  • Yuri Geronimus

延伸阅读

  • Kotlin 2.5.0 新特性文档
  • Kotlin 2.5.0 兼容性指南
  • Kotlin EAP 冠军

订阅 Kotlin 博客更新

谢谢,我们已收到!

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Kotlin Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗