miha-x64
11/16/2016, 4:06 PMinline
that makes compiler to copy method body to the place of its invocation. E. g.
file.inputStream().use {
println(”hello”)
}
will be compiled to (not literally, just an example):
val it = file.inputStream();
try {
println(”hello”)
} finally {
it?.close();
}