this post was submitted on 14 Nov 2023
814 points (94.7% liked)
Programmer Humor
32588 readers
1702 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
Well, that depends on definition. But the joke is why on earth would you want to write types on your shopping list? Like this:
Etc.
To be conformant with PEP-8.
Why not? If a shop is having a sale on fruits only then I would like to sort out all the fruits quickly.
Well, I can't think of an English example from the top of my head, but in German the words for Pear and (light) bulb are the same. So there are some exotic use cases.
So that the mindless automaton delivering your groceries doesn't unexpectedly give you tomatoes for your sundae, in a future expansion to dish-based orders.
I've yet to create a type error that didn't correspond to me thinking about something wrong.