this post was submitted on 11 Oct 2025
285 points (96.1% liked)

Programmer Humor

27048 readers
1150 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
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] olafurp@lemmy.world 1 points 2 weeks ago (2 children)

Isn't it just like error handled code in Golang?

Like a sequence A, B, C where if A errors you don't continue to B or C but if A is ok then you just continue doing B and so on. In the end you end up with the result or errors. Am I wrong to assume this?

[โ€“] ytg@sopuli.xyz 2 points 1 week ago

The Either monad (also known as Result) provides Go-like error handling, but automated. You only check manually for errors after the last call, the monad handles the process.

But this is just one example of a monad, there are many more.

load more comments (1 replies)