chuck
06/15/2017, 4:33 PMFor example, there are no implicit widening conversions for numbers ...Why not? https://kotlinlang.org/docs/reference/basic-types.html https://kotlinlang.org/docs/reference/basic-types.html#explicit-conversions
dalexander
06/15/2017, 4:38 PMdalexander
06/15/2017, 4:38 PMpoohbar
06/15/2017, 5:28 PMtoInt()
or toDouble()
fifty times in one file when working with any sort of math or graphics library.dalexander
06/15/2017, 5:35 PMval Byte.i: Int get() = this.toInt() and 0xFF
does a pretty good job of compensating for the shortcoming (when working with Bytes, for example).