NX2@feddit.de to Programmer Humor@programming.dev · 2 years agoWhat the f*ck is a monadfeddit.deimagemessage-square39fedilinkarrow-up1202arrow-down112
arrow-up1190arrow-down1imageWhat the f*ck is a monadfeddit.deNX2@feddit.de to Programmer Humor@programming.dev · 2 years agomessage-square39fedilink
minus-squaredukk@programming.devlinkfedilinkarrow-up6·2 years agoI mean, technically, Options are monads, so…
minus-squarenickAlinkfedilinkarrow-up1·2 years agoKind of, being able to unwrap it doesn’t really follow the monad laws. A more correct example of a monad in OO would be something like a Promise in JavaScript imo.
I mean, technically,
Option
s are monads, so…Kind of, being able to unwrap it doesn’t really follow the monad laws. A more correct example of a monad in OO would be something like a Promise in JavaScript imo.