@karelpeeters that works. took me a while too see how in your example as im used to explicit this/self. just thinking how a golang defer would be nice in this example { defer { this.started = true}(); return !this.started } .. obv this all just trivial somewhat pointless examples as I get to grips with Kotlin conventions (or lack of them)