Comment

Comment by Draiken

> If you prefer inheritance over composition

That's not what this boils down to.

These are procedures. OOP is generally about objects sending messages to each other. So this solution is all about executing procedural calls, which has nothing to do with inheritance/composition.

You can very easily have OO code with composition without having to rely on everything having one single interface "call/run/execute".

parent Draiken 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton