4 Comments
User's avatar
Tien Do's avatar

Why isn't C++ mentioned? It uses inline, static and dynamic (virtual table).

Expand full comment
Jacob Bartlett's avatar

Good point. I think when I was enumerating the languages to compare with, I didn't necessarily have anything interesting to say. I was mainly just trying to say this language uses static, this language uses dynamic, this language uses message. Swift is interesting because it uses all four types.

I suppose I didn't mention C++ because it doesn't really help me to make that point!

And I understand this weakens my thesis anyway, but inlining is more like a special case/optimization of static dispatch. So I suspect probably most compiled languages apply it to some extent.

Expand full comment
Josh Arnold's avatar

Wow this is an amazing write up. Thank you!

Expand full comment
Jacob Bartlett's avatar

I appreciate you reading. Cheers!

Expand full comment