News for hackers. Stuff that matters.
Re:If Inheritance is so bad, why does everyone use it? by UncleMeat on Saturday April 13, 2024 @01:18PM (#40024522)
Control flow is doable with gotos. What benefit therefore is structured programming?

Dynamic dispatch is implemented under the hood with lookup tables and function pointers. Sometimes, it is nice for a language to wrap a fiddly thing in a more abstract structure to make it easier to read, understand, and write.

There are no comments on this comment yet.