this post was submitted on 14 Mar 2024
5 points (100.0% liked)

Functional Programming

1396 readers
1 users here now

founded 1 year ago
MODERATORS
 

cross-posted from: https://sopuli.xyz/post/10354955

If "category" has a better name....

Isn't it just "composite"?

Every arrow in category can be composed, the set(or class or whatnot..) of that is composite.

you are viewing a single comment's thread
view the rest of the comments
[–] philluminati@lemmy.ml 2 points 4 months ago

I think the name “context wrapper” is meaningful representation. To me, (and i emphasise the to me part) It’s something that wraps on type to add more information to it.

For instance a time type could be wrapped in timezone Monad. To stop time being manipulated without the context (time zone) being corrupt, we use map to only allow specific changes to instance inside the monad.

I wrote a little blog post on my interpretation if anyone’s interested: https://blog.philliptaylor.net/?post=monads-for-oo-programmers.md