Re:Functional Programming Jargon
by AzzieElbab on Tuesday November 07, 2017 @05:08PM
(#15648124)
"Now using C++ would have been truly boneheaded ..."
Yes, 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.)
Some of the more type-y stuff is a bit harder to describe, though. But I think it's a worthwhile tradeoff for ease of accessibility.
(Now using C++ would have been truly boneheaded---since they don't have first-class functions in that language.)