|
|
|
|
|
by yawaramin
3100 days ago
|
|
In a way C++ is using higher-order functions conceptually too for polymorphic runtime dispatch. Because it uses vtables, which are lists of function pointers--essentially the object doing the dispatch is a HOF which calls one of the functions it has a pointer to. All this is just made explicit, and the boilerplate OOP mechanisms stripped away, when you just directly pass first-class functions around. |
|