<@U0JRS2YUB> To be honest, I don't see how your so...
# announcements
r
@sreich To be honest, I don't see how your solution is superior to just doing this, without the extension function:
Copy code
fun dostuff() {
        val a = A()
        a.start()
        println("mid run")
        a.finalize()
    }
If you did anything with
try finally
or the likes I'd understand, but you're just putting the block that should run last at the beginning of the block - that seems counter intuitive to me.
4