C, C++, C#, Java, as well as many other statically typed languages have the type before variable like (int a =5, auto c = 4, etc.).Non-statically typed languages (such as Javascript, basic) use var (or let) before the name (var a = asd)Why does Kotlin, a statically typed language, use a mixture (var i: Int)?Why not define it as (Int i = 5)? It's a bit less typing and I don't see the advantage in form #2?
Why does Kotlin require type after variable, rather than before?
language design;variables