216
you are viewing a single comment's thread
view the rest of the comments
[-] CanadaPlus@lemmy.sdf.org 15 points 1 month ago* (last edited 1 month ago)

Also, it should turn an error into an empty but successful call. /s

[-] hydroptic@sopuli.xyz 12 points 1 month ago

Calling reverse() on a function should return its inverse

[-] tetris11@lemmy.ml 8 points 1 month ago
isprime.reverse(True)
// outputs 19 billion prime numbers. Checkmate, atheists.
[-] CanadaPlus@lemmy.sdf.org 2 points 1 month 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.

this post was submitted on 27 Aug 2024
216 points (94.3% liked)

Programmer Humor

32259 readers
145 users here now

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

Rules:

founded 5 years ago
MODERATORS