C# introduced a really neat usage of the
using keyword. It follows closely with the declaration style of a variable, but is disposed when you exit the current scope.
It’s nice that kotlin has
.use available, although I’m wondering if kotlin has anything to keep code clean in a similar way that C# is now offering.
(If not, I wonder if any kotlin maintainers reading might be inclined to consider adding scoped-use somewhere on the roadmap )