Remix.run Logo
rurban 2 days ago

I have a different view of them. For me, having implemented both in my object systems, composition is compile-time, early-bound, whilst inheritance is just another runtime indirection, late-bound.

Composition needs more memory per class and object, but is faster at runtime.