``` fun diskIO(): Executor = diskIO fun d...
# getting-started
s
Copy code
fun diskIO(): Executor = diskIO

    fun diskIO(): Executor {
        return diskIO
    }
Are these two syntax doing the same thing?
👌 9
n
this one as well:
Copy code
fun diskIO() = diskIO
👍🏽 2
k
Not necessarily, that depends on the type of
diskIO
!
n
true but that’s not a strong assumption 🙂
k
It's really easy to leak implementation types this way.