OOPs, I'm so dead!
(trynova.dev)
from codeinabox@programming.dev to programming@programming.dev on 08 Dec 2025 16:18
https://programming.dev/post/42032744
from codeinabox@programming.dev to programming@programming.dev on 08 Dec 2025 16:18
https://programming.dev/post/42032744
#programming
threaded - newest
I would start with your heading, it makes no sense!
An explicit reference to what?
Man, I haven’t done structural inheritance in years and by now, this reads like the ramblings of a mad person.
Like, I recently had a use-case, where I actually wanted to define multiple types with the same fields and for various reasons ended up using a macro for that.
And that still felt simpler than whatever is going on in this article, because there were no cross-relationships between the types at runtime. The macro templated the type definitions as if I had copy-pasted them, except there’s no actual code duplication, which is ultimately all I wanted.
Yet they couldn’t find a better example for their rant about how awful it is.
I have found this blog post to be a waste of my morning time.