ispbox
09/22/2019, 8:45 AMview.dip()
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()
dip()
fits better both for float and int.louiscad
09/22/2019, 9:03 AMdp
is for that.ispbox
09/22/2019, 10:08 AMdp
and dip
? What`s wrong with overloading of dip
?Int
), but how to make elevation of 3.5f? š It should be float anyways.louiscad
09/22/2019, 10:12 AMispbox
09/22/2019, 10:21 AMdip(Int): Int
dip(Float): Float
They could be easily overloaded. The only "problem" is that you have to write:
elevation = dip(4f)
But that is not a problem, it is a feature to be able to set floating point elevation, i.e.:
elevation = dip(3.5f)
louiscad
09/22/2019, 12:26 PMispbox
09/22/2019, 12:30 PMdp()
).louiscad
09/22/2019, 9:25 PMdip
or dp
. Please vote here: https://kotlinlang.slack.com/archives/CHJP9K00L/p1569187453013900