this post was submitted on 27 Aug 2024
217 points (94.7% liked)

Programmer Humor

32712 readers
547 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] 13 points 3 months ago (1 children)

Calling reverse() on a function should return its inverse

[โ€“] [email protected] 9 points 3 months ago (1 children)
isprime.reverse(True)
// outputs 19 billion prime numbers. Checkmate, atheists.
[โ€“] [email protected] 2 points 3 months ago

It's a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.