Kotlin 1.4-M2 brings standard library improvements

JetBrains is doing work towards the basic release of Kotlin one.four, an enhance to the open up supply, basic intent language for JVM, Android, net, and native enhancement that guarantees enhancements to the typical library together with the API.

In a bulletin posted on May well 12, JetBrains thorough typical library enhancements in the forthcoming Kotlin one.four-M2 milestone release. An early version has been deployed to the Kotlin playground for builders to test out. Improvements to the current API are highlighted, together with updating signatures and introducing new constants. Some features have been peaceful to accept nulls.

For case in point:

val s: String? = null
println(s.toBoolean())  // wrong

(Take note that Kotlin one.3 will not compile this code.)

Other API-connected code improvements also are highlighted, such as Measurement_BITS and Measurement_BYTES, which are new constants in Double and Float. These incorporate the variety of bits and bytes employed to represent an instance of the form in binary kind.

Also new in the Kotlin one.four-M2 typical library:

Copyright © 2020 IDG Communications, Inc.

Maria J. Danford

Next Post

The pros and cons of using a virtual private cloud

Fri May 15 , 2020
VPCs (digital private clouds) ended up genuinely a marketing and advertising response by public cloud suppliers that discovered them selves competing with private clouds, this kind of as OpenStack, years in the past. Some enterprises did not relish the plan of positioning their data on a public cloud, sharing pooled […]

You May Like