I started doing some performance testing on my And...
# language-evolution
m
I started doing some performance testing on my Android app using Kotlin 1.6.10. One of my benchmarks involved a constructor that checked if a value was within a
DoubleRange
. Since
ClosedDoubleRange
is private the type being used is
ClosedFloatingPointRange<Double>
. Since that is a generic class the call to
contains
requires the value to get boxed on the JVM. This boxing doesn't happen when using
IntRange
. Has there been any thoughts about making
ClosedDoubleRange
public?