I admit that Kotlin should be the best JVM language ever, but there is always something annoying about this supposed-to-be-great language. To me, one of the most frustrating ‘feature’ of Kotlin is the Type Casting system, especially in function parameters: Why is a Float not a Double, or an Int not a Long?
There are some functions that requires Double as their parameters and for every single argument I have to add a conversion “toDouble()” for every single values though all my values are Float, which is really annoying. I do not say it is impossible, it is possible but annoying. It maybe a good habit to do so, but sometimes I only want to write a quick, dirty program for testing my ideas. Can’t you make it warning instead of error?
Anyone seeing the Google Trend for Kotlin may wonder why Kotlin’s trend has always been neither increasing nor decreasing. It’s been just fluctuating. It went up around the time when Google announced its support for Android and went down almost instantly and keeps fluctuating until now. I think it is because of these conservative features that Kotlin cannot be more popular.
Please do something about it. I think Kotlin is very promising but it will end soon if things continue like this.