3 ms·
Can't agree with this at all. Bare function pointers are inadequate for many purposes; using them often requires explicitly passing around an additional enviro
by ScottBurson 10y ago
Can't agree with this at all. Bare function pointers are inadequate for many purposes; using them often requires explicitly passing around an additional environment pointer ('qsort_r' on Linux is an example), which is ugly and not type-safe.
What you see as "delusions of grandeur" I see as the elegance of two concepts which, while duals with each other, are much more general than bare function pointers.
(And yes, I understand very well how closures and objects are implemented using function pointers.)