Capital on Nostr: I can't help but feel like I write Crystal wrongly. For the most part I ignore ...
I can't help but feel like I write Crystal wrongly. For the most part I ignore inheritance and just use mixins and unions types.
My brain has never understood inheritance as a means of code re-usage. And, building class hierarchies has always felt tedious and error prone (e.i, having to re-structure cause of some early decision that no longer holds up).
Like, when I'm working on Godot, I only extend a base-type to use its API.
My brain has never understood inheritance as a means of code re-usage. And, building class hierarchies has always felt tedious and error prone (e.i, having to re-structure cause of some early decision that no longer holds up).
Like, when I'm working on Godot, I only extend a base-type to use its API.