on memory.
so, garbage collector is a good solution when you have two threads, or two programs that use shared memory, and you need to free memory automatically. it is very hard to do that in other ways (let’s say with smart pointers). which is obvious, one process does not know how the other behaves.
on safety. wow, in rust you have no null pointer. and you cannot dereference it therefore.
#programming