Be the operator overload you wish to see in the world
this post was submitted on 27 Aug 2024
4 points (100.0% liked)
Programmer Humor
32000 readers
1744 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
[๐ฝ].pop() == ๐ฟ
"๐ด".push() = "๐ฒ๐คธ"
but
"๐".reverse() == "๐"
Also, it should turn an error into an empty but successful call. /s
Calling reverse()
on a function should return its inverse
isprime.reverse(True)
// outputs 19 billion prime numbers. Checkmate, atheists.
":-)".reverse() == ")-:"
Close enough
Then โbโ backwards would have to be โdโ
"E".reverse() == "โ"