`sumOf{..}: Float` , there are Int, Long, UInt, UL...
# stdlib
e
sumOf{..}: Float
, there are Int, Long, UInt, ULong, Double, BigDecimal, BigInteger but Float is missing
🤣 1
e
There are none for for byte and short, too. Just like float we consider them to be mostly storage types, used to optimize size of large data arrays. What’s your use-case for floats?
e
I need to sum float variables
I'm using a `for`loop right now
e
That I’ve got. But why do you use floats in your code? What’s your use-case for them?
e
however byte and short are a different matter. Jvm under the hood switches them to Int, then it makes sense to not have them
Float is different
it's a port of native imgui
float is the native type, float is the ported type
I guess the precision is more than enough
e
Do you port it as in “line by line” or write an adapter?
e
closest as possible to reduce divergence, maintenance, bugs
however I condense wherever I can, functional programming helps a lot in this regards
e
Cool. Post the request to https://kotl.in/issue please.
e
natively and in my port there is a loop on a
var
, I could simply switch to a
val
and use the
Float
sumOf
e
Thanks
You can write your own sumOf for floats for now.
e
ah yeah, I'll do, thanks