@hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml • 3 months ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square26fedilinkarrow-up1233arrow-down114cross-posted to: programmer_humor@programming.dev
arrow-up1219arrow-down1image"☹️".reverse() == "🙂"sopuli.xyz@hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml • 3 months agomessage-square26fedilinkcross-posted to: programmer_humor@programming.dev
minus-square@CanadaPlus@lemmy.sdf.orglinkfedilink15•edit-23 months agoAlso, it should turn an error into an empty but successful call. /s
minus-square@hydroptic@sopuli.xyzOPlinkfedilink12•3 months agoCalling reverse() on a function should return its inverse
minus-square@tetris11@lemmy.mllinkfedilink9•3 months agoisprime.reverse(True) // outputs 19 billion prime numbers. Checkmate, atheists.
minus-square@CanadaPlus@lemmy.sdf.orglinkfedilink2•3 months agoIt’s a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.
Also, it should turn an error into an empty but successful call. /s
Calling
reverse()
on a function should return its inverseIt’s a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.