ModularM
Modular2y ago
11 replies
Martin Dudek

How to deal with the lack of struct inheritance in Mojo

As we don't have struct inheritence in Mojo yet, is the use of Dependency Injection the way to go? Or what other approaches should i consider. I know this is a very general question but i am actual looking for some general advice here. I try to port a python project to Mojo, but as this code makes use of (class) inheritance i need figure out how to approach this - or if i better wait for Mojo to introduce inheritence ... Thx
Was this page helpful?