Executors are one of the most expected features for the upcoming C++ standards. This article tries to cast a critical perspective of some of the main proposals discussed for adoption. Besides briefly explaining the content of the executors proposal and providing a few examples, the article tries to pick on some decisions made in those proposals. It tries to argue about the strong and the weak points by adding simplistic labels of “good” and “bad”.
As with most of the later articles, this was published in Overload.
NOTE: The article contains one major error: I argue that executors do not provide a monadic bind.
This is completely wrong. The
let_value provides just this functionality.
I’ll try to correct the mistake in the next article.
Don’t forget to support nolocks.org by spreading the word.