News for hackers. Stuff that matters.
Re:Memory Safe Languages in Android 13 by nevi-me on Thursday December 01, 2022 @03:05PM (#33821951)
I prefer self. The changes in ES5 in JavaScript were painful because some people kept losing track of `this`'s scope. IIRC it changed with arrow functions, making it hard to know what `this` the code was using.

I prefer an explicit `this` or `self` being passed, so that I know where it's defined. Something close enough, Kotlin uses `it` in lambdas. If you're nesting your lambdas, it can be tricky to review the code when just staring at it (when the IDE isn't helping you with types).

There are no comments on this comment yet.