3 ms·
Safety can include crashing. It's better than returning subtly incorrect results. Yes, there are nil pointers and unnecessary data structures that people keep
by jrockway 5y ago
Safety can include crashing. It's better than returning subtly incorrect results. Yes, there are nil pointers and unnecessary data structures that people keep around, but that's miles ahead of C where an HTTP request and a missing bounds check can inject new code into the application.
If you have a Go program where user input can be executed as code (no cgo, no unsafe), I'd love to see it.
- Zababa 5y ago> no cgo If you're not careful, you will use c code when using os/user and net according to https://www.arp242.net/static-go.html https://www.arp242.net/static-go.html.
- junon 5y agoThis is splitting hairs and arguing semantics. The absolutist statement "Go is memory safe" is simply incorrect.