Hello! Is it possible (or will it be possible) to ...
# announcements
n
Hello! Is it possible (or will it be possible) to disable some of Kotlin "safety features", like calls to kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull when those are not needed? In this example null checks adds around 50% time overhead for function:
Copy code
fun Vector2.distance2To(v: Vector2): Float {
    val distX = v.x - this.x
    val distY = v.y - this.y

    return distX * distX + distY * distY
}