logoalt Hacker News

shikck200 • yesterday at 3:34 PM • 1 reply • view on HN

You can write unsafe code in Go (import unsafe), but then, you can do the same in Rust. Unsafe code is not the default, and in day to day Go i rarely see the use of the unsafe package.


Replies

iambvk • yesterday at 3:47 PM

What he probably means is data-races in go can result in memory/type unsafe accesses -- I suspect, likely due to slice types -- not sure if that is true/false.

➕ show 1 reply