Guys, are there any chances for a feature like JS'...
# announcements
v
Guys, are there any chances for a feature like JS's function hoisting to be implemented in Kotlin? I would like to write something like this in Kotlin (which I can in JS):
Copy code
fun hoisting() {
    doFirsThing()
    thenSecond()
    andSomethingMore()

    fun doFirsThing() { /* Long function goes here */ }
    fun thenSecond() { /* Long function goes here */ }
    fun andSomethingMore() { /* Long function goes here */ }
}
Putting implementations of auxiliary functions after their usage is more readable to me than vice versa.