``` fun diskIO(): Executor = diskIO fun diskIO(): Executor { return diskIO } ``...
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.