How bad would it be for kotlin to coarce Int and L...
# language-evolution
r
How bad would it be for kotlin to coarce Int and Long literals to BigInteger or BigDecimal without having to add a method call, if that’s the required type? Am I profoundly misguided for even suggesting it?
I wonder whether the silence means it’s not even worthy of contempt, or that it’s unobjectionable?
y
I think I saw a kotlin discussions thread somewhere where a team member mentioned that they're thinking about implementing it. Lemme check real quick
🙏 1
https://discuss.kotlinlang.org/t/implicit-safe-conversions/21282/7 Well this was about Int to Long promotion but it's probably close enough then
There's also this related KEEP which would then mean that promoting Ints to BigIntegers will be expected under that Kotlin discussions post