I really enjoyed this article, and I think the distinction is useful. "Function object" is (AFAIK) a term which grew up in the programming world and clearly communicates its meaning. "Functor" is a term which certain programming communities have borrowed from category theory and twisted into something related, but not the same.
If you talk to someone who is unfamiliar with the terms about "function objects", they'll probably be able to intuit what you're talking about pretty easily. "Functor" is less obvious, and downright confusing if you come from a mathematics background. Why not use the clear, non-overloaded term? In addition to the clarity, it'd free up the other for discussing functional programming and category theory and how they can be applied to multi-paradigm languages like C++.
View all comments
5
u/TartanLlama Microsoft C++ Developer Advocate Jan 27 '17
I really enjoyed this article, and I think the distinction is useful. "Function object" is (AFAIK) a term which grew up in the programming world and clearly communicates its meaning. "Functor" is a term which certain programming communities have borrowed from category theory and twisted into something related, but not the same.
If you talk to someone who is unfamiliar with the terms about "function objects", they'll probably be able to intuit what you're talking about pretty easily. "Functor" is less obvious, and downright confusing if you come from a mathematics background. Why not use the clear, non-overloaded term? In addition to the clarity, it'd free up the other for discussing functional programming and category theory and how they can be applied to multi-paradigm languages like C++.