475
you are viewing a single comment's thread
view the rest of the comments
[-] kayohtie@pawb.social 30 points 3 weeks ago
[-] theit8514@lemmy.world 44 points 3 weeks ago

Only if you define it.

const that = this

[-] mesamunefire@piefed.social 15 points 3 weeks ago

I remember that a long time ago. Oh god

[-] Aurenkin@sh.itjust.works 7 points 3 weeks ago

I remember this too... what a nightmare.

[-] eager_eagle@lemmy.world 30 points 3 weeks ago* (last edited 3 weeks ago)

it's common practice as a workaround to save this when changing contexts, since this may change under you, in callbacks and such

[-] Johanno@feddit.org 2 points 3 weeks ago

Kotlin:

this@outerFunction.bla
this post was submitted on 22 Jul 2025
475 points (97.4% liked)

Programmer Humor

25750 readers
1334 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS