this post was submitted on 11 Oct 2025
289 points (96.2% liked)

Programmer Humor

27778 readers
799 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 months 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?

[โ€“] Solemarc@lemmy.world 1 points 1 month ago

Whenever I try and get a proper explanation of a monad from the internet I get these miserable opaque examples which make me go "sorry I asked!" But I think a monad is basically just single type that when unwrapped gives you the result of a calculation and some metadata about the calculation.

I think it's more like Rust's Result or Option types then go's tuples but I'd say they both basically count.

load more comments (1 replies)