Seeking Advice on Porting Python Classes to Mojo Structs
I still struggle with how to port Python classes to Mojo structs in the current state of Mojo and seek some help. Here I post a Python class and suggest four ways to port it to Mojo that I came up with. All of them work in this simple example but seem to have some major drawbacks when the class is more complex.
It would be great to get feedback on how you handle this.
Here an example Python class to port to Mojo
It would be great to get feedback on how you handle this.
Here an example Python class to port to Mojo
