Every time when you are writing functions with a lot of parameters like this
fun rectangle(x1: Int, y1: Int, x2: Int, y2: Int) {
/** code **/
}
or even like this one:
fun setMatrix(a1: Float, a2: Float, a3: Float, a4: Float, b1: Float, b2: Float, b3: Float, b4: Float,
c1: Float, c2: Float, c3: Float, c4: Float, d1: Float, d2: Float, d3: Float, d4: Float) {
/** code **/
}
It’s getting ridiculous to write every single parameter’s type there.
And to solve this problem I wanna suggest that syntax with omitting parameter types in functions:
fun rectangle(x1, y1, x2, y2: Int) {
/** code **/
}
fun setMatrix(a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4: Float) {
/** code **/
}
These parameters would be much more readable and preferable for Kotlin language users.
Hope you’ll support this idea