2 ms·
Java is not similar. It guarantees memory safety even for multithreaded code with data races. It can result in stack overflows, infinite loops, but not in memo
by cyberax 2y ago
Java is not similar. It guarantees memory safety even for multithreaded code with data races.
It can result in stack overflows, infinite loops, but not in memory corruption.
That's not the case for Go, it's trivially easy to create memory corruption with multiple threads there.
- steveklabnik 2y ago"Similar" does not mean "the same," you are correct that Java's guarantee is stronger.