Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I got so used to taking advantage of this feature in my side projects that my work Kotlin code is now full of “run {}” blocks. Even with a GCed language, it’s very nice to restrict variable lifetimes without needing to split the logic out to its own function.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: