Originally posted by sad_coala
View Post
The Go race detector is pretty good at catching everything if your unit tests cover all the code, and of course, run the goroutines at the same time. Or maybe those are integration tests. Whichever they are, things are tested.
Almost all of the nil pointers and interface{} errors in Go aren't safety problems because they just cause a panic and abort the program. Of course, you can write "unsafe" in Go, and that is just as bad as doing it in C. But the same is true of Rust.
Go seems very safe overall. The worst bugs I've seen are hangs, panic crashes and unlimited memory usage. Nothing that would be a security problem. Just denial of service.
Comment