1096
Product ownership 101 (eviltoast.org)

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)

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

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.

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

Programmer Humor

26613 readers
4161 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