NX2@feddit.de to Programmer Humor@programming.dev · 3年前What 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 · 3年前message-square39fedilink
minus-squaredukk@programming.devlinkfedilinkarrow-up6·3年前I mean, technically, Options are monads, so…
minus-squarenickAlinkfedilinkarrow-up1·3年前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.
I mean, technically,
Options 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.