4 ms·
As they say, (objects|closures) are a poor man's (closures|objects). The pertinent point is that you don't need runtime typing to implement runtime dispatch.
by Sharlin 10y ago
As they say, (objects|closures) are a poor man's (closures|objects).
The pertinent point is that you don't need runtime typing to implement runtime dispatch. OO languages are based on associating behavior with types when all you need is to associate behavior with values. Or in other words, functions that are first-class values.