Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
superb_dev
· 2y ago · 0 comments
It kinda does yeah, you probably shouldn’t do that
Comments
[–]
adastra22
2y ago
It’s fine if that’s the only (writable) pointer to the struct. Which is something go doesn’t enforce, but Rust does.
I often dream of Go with Rust’s borrow checker. Sigh…
[–]
jimbokun
2y ago
Wouldn't that be Rust?
[–]
adastra22
2y ago
Rust doesn’t have a direct analogue to go’s concurrency primitives. The pieces are there, but you have to jump through hoops to use them effectively.