3 ms·
Self doesn’t have classes or inheritance, and it’s as [single-dispatch] OO as they come. (Certainly moreso than something like C++, which wouldn’t look out of
by hhas01 7y ago
Self doesn’t have classes or inheritance, and it’s as [single-dispatch] OO as they come.
(Certainly moreso than something like C++, which wouldn’t look out of place on a Melanesian island. Never could figure why C++ and all its typed kin would choose to dispatch [dynamically] on only one argument instead of on all. Playing to their weaknesses, no?)
- MaxBarraclough 7y agoMy guess is that by going with single dispatch, you get clear 'ownership' in terms of methods^H^H^H^H^H^H^H member-functions belonging to classes. Can't say I know a lot about multiple-dispatch though.