3 ms·
"Now using C++ would have been truly boneheaded ..." https://bartoszmilewski.com/2015/01/20/functors/ https://bartoszmilewski.com/2015/01/20/functors/
by AzzieElbab 9y ago
"Now using C++ would have been truly boneheaded ..."
https://bartoszmilewski.com/2015/01/20/functors/ https://bartoszmilewski.com/2015/01/20/functors/
- eru 9y agoYes, you can do it in C++. But it's not a good medium for teaching those concepts. (The excellent article you linked to explains them in Haskell first, and then shows how to do them in C++ only afterwards.)