4 ms·
If you think Function Composition is a good thing, then it is very natural to want composition for functions of more interesting types than T→U, for example T→P
by dustingetz 8y ago
If you think Function Composition is a good thing, then it is very natural to want composition for functions of more interesting types than T→U, for example T→Promise[U] which chains intuitively but not by type.
How did I do?
- jimbokun 8y agoI don't know, but I think "Chain" might be a better name than "Monoid" to introduce the concept and capture the main idea.
- dan-robertson 8y agoWell “Monoid” is a different sort of composible than something like like T -> Promise U. I do agree that Monoid and Monad aren’t really great names for anyone who doesn’t come from an algebra background (ie basically anyone).