this post was submitted on 08 Jun 2025
513 points (97.2% liked)

Programmer Humor

36575 readers
297 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 78 points 1 week ago* (last edited 1 week ago) (37 children)

Partially unrelated to the meme, but I find it almost malicious how some python keywords are named differently from the nearly universal counterpart of other languagues.

This/self, continue/pass, catch/except and they couldn't find a different word for switch so they just didn't implement it.

It's as if the original designers purposefully wanted to be different for the sake of it.

[–] [email protected] 22 points 1 week ago (7 children)

I read that self as a keyword also has quite a history. It was already used in Smalltalk, an OOP language from the early 80's.

[–] [email protected] 16 points 1 week ago (6 children)

Isn't self not actually a keyword? Like you can name the first variable in a class method anything and it will behave like self.

[–] [email protected] 1 points 1 week ago

You could even choose the name this.

load more comments (5 replies)
load more comments (5 replies)
load more comments (34 replies)