Or even better, `map[string][]map[string]int`. In typescript that would be `Record
Discussion
No. Rust is better
rust is just C++ with a better build system than Cmake and an extra, super complicated syntax for memory management
isn't it?
There is not syntax for memory management. Memory is managed by the types themselves, in "unsafe" code, that is allowed to do pointer stuff. A String handles the heap allocations and frees in the drop method/destructor. Memory is no different to other resources, a File closes the file in it's drop method, a mutex guard unlocks in it's drop method, etc.