LastExceed
09/16/2022, 9:34 AMlistOf(1,2,3).sumOf { it.toDouble() } //works fine
listOf(1,2,3).sumOf { it.toFloat() } //error: no applicable overload
can someone explain why?Sam
09/16/2022, 9:46 AMLastExceed
09/16/2022, 9:52 AMConsidering that workaround exists, we decided that overloads forwtf, it's literally 1 function with a 5loc body that is missing, how is that too much to ask for but thanks for the linkdo not pull their weightFloat
ilya.gorbunov
09/16/2022, 4:25 PMLastExceed
09/17/2022, 8:08 AMUInt
or even BigInteger
is apparently more important than Float
ephemient
09/17/2022, 10:46 PMByte
and Short
, `Float`'s use should usually be limited to storage, not computation. even Android has dropped FloatMath
since Math
on Double
is faster.LastExceed
09/18/2022, 6:23 AM