this post was submitted on 08 Jun 2025
510 points (97.6% liked)
Programmer Humor
36340 readers
316 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Lua might have been a better choice, since
self
is special in lua.Kinda.
Lua defines it implicitly only when you use the
syntactic sugar, which gets translated to
In all cases,
self
is a regular variable name. You can even redeclare a new local with that name even when the old one is in scope.Edit: some typos
I don't see how what you said is inconsistent with me saying "self" is special in lua. Note that I did not say it's a keyword.
Derp, I misread.