November 28th, 2024

Kotlin to lose scripting features

JetBrains plans to remove underused scripting features from Kotlin, retaining some REPL functionalities while promoting the Kotlin Notebook and IDE Scratch files, but not recommending Kotlin for general-purpose scripting.

Read original articleLink Icon
Kotlin to lose scripting features

JetBrains has announced plans to remove several scripting features from the Kotlin programming language due to low usage and the availability of alternative technologies. The features being dropped include the default REPL implementations, an outdated Java scripting API, the KotlinScriptMojo Maven plugin, and the kotlin-scripting-ide-services library. JetBrains indicated that user needs for scripting are being met by other supported technologies. While the Kotlin Notebook plugin and IDE Scratch files will continue to be promoted for interactive development, the company will retain some REPL-related functionality in the compiler and the Custom Scripting API. However, with the transition to the K2 compiler, many scripting functionalities will be altered or removed. JetBrains emphasized that while Kotlin scripting remains a part of its infrastructure, it will not be recommended as a general-purpose scripting solution compared to languages like Bash or Python. The existing implementations will remain functional until the release of Kotlin 2.3, but the KotlinScriptMojo plugin will be discontinued due to insufficient usage. JetBrains may consider reintroducing similar functionalities in the future based on the new K2 compiler.

- JetBrains will remove several underused scripting features from Kotlin.

- The Kotlin Notebook plugin and IDE Scratch files will still be supported.

- Some REPL-related functionalities will be retained but altered with the K2 compiler.

- Kotlin scripting will not be recommended as a general-purpose solution.

- Existing implementations will remain until Kotlin 2.3 is released.

Link Icon 0 comments