Does this care about memory at all?
In the transpiled code I see structures getting allocated but never deallocated.
That will work for this trivial examples, but not for anything serious.
To properly translate Python to C++ you would have atleast produce a shared_ptr<T> from every T and even that doesn't work with cycles. Rust translation is even more complicated.
That will work for this trivial examples, but not for anything serious.
To properly translate Python to C++ you would have atleast produce a shared_ptr<T> from every T and even that doesn't work with cycles. Rust translation is even more complicated.