this post was submitted on 25 Sep 2025
1094 points (99.2% liked)

Programmer Humor

26611 readers
1412 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Only valid in PHP?

you are viewing a single comment's thread
view the rest of the comments
[–] tetris11@feddit.uk 2 points 4 days ago* (last edited 4 days ago) (1 children)

Boolean functions have potentially infinite return states depending on error handling

  • True
  • False
  • NA
  • NULL
  • Error1 "You done messed up."
  • Error2 "You done messed up differently. But again."
  • Error3 "My tender bosom heaves in anguish"

etc

[–] Subscript5676@lemmy.ca 6 points 4 days ago (1 children)

Not in my functional language with no nulls :P

[–] wischi@programming.dev 1 points 3 days ago* (last edited 3 days ago)

It still can panic/abort and deadlock/wait infinitely long on most fp languages because that's typically implied. And there isn't actually a way around that because computation almost always can fail or block indefinitely - and if you have a total language you can implement waits for billions of years, which for all practical purposes is "infinitely" long on human time scales.