3 ms·
Function name resolution isn't OOP, it's attaching a namespace to a type. The _really_ important part is dynamic dispatch. You can have proper OOP without metho
by pdpi 9y ago
Function name resolution isn't OOP, it's attaching a namespace to a type. The _really_ important part is dynamic dispatch. You can have proper OOP without method syntax, it just looks awkward to our eyes. In fact, in Objective C,
[obj doStuff: foo withBar: bar]
gets desugared into
objc_msgSend(obj, NSSelectorFromString(@“doStuff:withBar:”), foo, bar)
- sanxiyn 9y agoI already agreed function name resolution isn't OOP. My argument was that it is "OOP", with quotes. My supporting evidence is that people consider C++ without any dynamic dispatch as "OOP", with quotes.