News for hackers. Stuff that matters.
Re:C++17: I See a Monad in Your Future by eru on Thursday February 27, 2014 @09:03PM (#7316780)
That's somewhat backward. Monads come from Category theory.

A while ago the FP people figured out that their `hacks' to do IO actually conform to the structure of a Monad. So they exploited the fact. Now the author sees that the `hack' to do futures in C++ also conforms to the structure of a Monad, and suggests exploiting that fact.

Re:C++17: I See a Monad in Your Future by bitL on Friday February 28, 2014 @06:07AM (#7318104)
Sure, monads come from category theory. IO and interactivity doesn't.

Yes, though futures were always like that when you look at Java for example. Java always suffered from the need to prepare complex design patterns to do simplest things as it was much less flexible than C++. Now C++ is getting there as well.

I personally would stick with some earlier C++ standard and use Haskell for my functional programming needs. Feels much more natural than trying to bend each language to support every thought process imaginable, and doing a poor job at that.