News for hackers. Stuff that matters.
Re:Tricks I wish I knew when I learned TypeScript by ipaddr on Tuesday October 12, 2021 @04:29PM (#28844685)
Monad: In functional programming, a monad is an abstraction that allows structuring programs generically. Supporting languages may use monads to abstract away boilerplate code needed by the program logic.

Promise: A Promise is an object representing the eventual completion or failure of an asynchronous operation. Essentially, a promise is a returned object to which you attach callbacks, instead of passing callbacks into a function.

There are no comments on this comment yet.