Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Go provides channels for safe communication between goroutines (which are distributed across multiple threads).


You can use channels to pass mutable objects, which are then shared between threads. The passing itself may be safe, but the resulting situation isn't.

The Rust compiler won't let you do that.


You can mutate objects from multiple threads in Go without using channels.


The Rust compiler won't let you do that either!


I know. I just didn't see why you were bringing channels into it. It's not as if it's some loophole involving channels that's the issue here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: