3 ms·
I didn't know Hickey was a C++ hacker. Explains his dim view of OO. Maybe someone should have introduced him to Smalltalk? Anyway, I find the use of the term
by mpweiher 8y ago
I didn't know Hickey was a C++ hacker. Explains his dim view of OO. Maybe someone should have introduced him to Smalltalk?
Anyway, I find the use of the term "callback" somewhat troubling in the context of OO software. A "callback" is really a procedural concept. In an OO language, it's just a message that you send to one of your arguments, and since message sending is all you can do, the most natural thing in the world.
One example here that's also popular particular in the FRP examples is the button, which needs a "callback". But when you look at a button in Objective-C/Cocoa, it just sends a message to an object. No callbacks in sight, though of course the actual underlying mechanism is very similar.
This turns something like Cocoa into an architectural adapter, adapting the UI into the message-sending architecture of the rest of the program. The user becomes a participant in the program, sending messages to objects in the program by way of the button.