The memory safety problem isn’t bad coders

The memory safety problem isn’t bad coders

A lot of the comments I’ve seen on social media boil down to “The problem isn’t the use of a memory unsafe language, but that the programmers who wrote this code are bad.” The code that I was working on had both a thread pool and a database connection pool. The compiler told me that the mutex guard didn’t implement Send, which is Rust’s way of saying “You can’t send this to another thread” at which point the problem became clear to me.

Source: medium.com