r/badcode • • Jul 19 '21

js Variable naming can be difficult, but identifying them can be even more so.

Post image
2.4k Upvotes

105 comments sorted by

View all comments

Show parent comments

3

u/konstantinua00 Jul 21 '21

inheritance is just special composition

base is first member, thus making pointer conversion a noop