ispbox09/22/2019, 8:45 AM
to be able to deal with floating values where needed. Because without that you have to use your own helper or write extra code:
elevation = dip(4).toFloat()
fits better both for float and int.
louiscad09/22/2019, 9:03 AM
is for that.
ispbox09/22/2019, 10:08 AM
? What`s wrong with overloading of
), but how to make elevation of 3.5f? 🙂 It should be float anyways.
louiscad09/22/2019, 10:12 AM
ispbox09/22/2019, 10:21 AM
They could be easily overloaded. The only "problem" is that you have to write:
dip(Int): Int dip(Float): Float
But that is not a problem, it is a feature to be able to set floating point elevation, i.e.:
elevation = dip(4f)
elevation = dip(3.5f)
louiscad09/22/2019, 12:26 PM
ispbox09/22/2019, 12:30 PM
louiscad09/22/2019, 9:25 PM
. Please vote here: https://kotlinlang.slack.com/archives/CHJP9K00L/p1569187453013900