Join Slack
because kotlin doesn't auto-expand numeric types
# announcements
h
hho
04/12/2019, 12:09 PM
because kotlin doesn't auto-expand numeric types
r
reik.schatz
04/12/2019, 12:09 PM
but then number 2 should have the same issue no?
h
hho
04/12/2019, 12:12 PM
<
and
>
are mapped to
compareTo
in kotlin (
https://kotlinlang.org/docs/reference/operator-overloading.html#comparison
). And there, the stdlib has all the overloads:
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html
r
reik.schatz
04/12/2019, 12:15 PM
alright, thanks for the explanation 🙂
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by