284
Monads (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] lambda_notation@lemmy.ml 3 points 1 week ago

They're just an abstraction to model and contain implicits, for instance like IO (filesystems) or program state. Regular functions should produce the same output for the same input, if they do not you have implicit effects. You can think of it kinda like a class, or a context, or a module which has some functions to help work with the implicit effect. Central then is also that each such class, context, or module can be composed with others of the same kind, maintaining a lineage of the implicit effect.

[-] sunbeam60@lemmy.one 2 points 1 week ago

Like we’re dumb!

Not like we’re smart!

[-] lambda_notation@lemmy.ml 2 points 1 week ago

I shall maintain that is the dolt explanation

[-] balsoft@lemmy.ml 1 points 1 week ago

If I squint I can see what you mean, but it can apply to many different concepts (effects, capabilities, etc) and not just monads. Monads have a very specific and actually quite simple definition.

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

Programmer Humor

26898 readers
869 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