589
you are viewing a single comment's thread
view the rest of the comments
[-] gedhrel@lemmy.world 3 points 8 months ago

That's fine, and for that there are sum types. My own opinion differs - it's a question of taste. Being able to bundle the handling of exceptional situations aside from the straight-line logic (or use RAIi-style cleanup) is notationally convenient.

Yes, you can do the same with monads; use the tools available to you.

this post was submitted on 10 Aug 2024
589 points (97.3% liked)

Programmer Humor

22586 readers
1084 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