Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foldr
on June 18, 2019
|
parent
|
context
|
favorite
| on:
Go Creeping In
Go provides channels for safe communication between goroutines (which are distributed across multiple threads).
twic
on June 18, 2019
[–]
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.
foldr
on June 18, 2019
|
parent
[–]
You can mutate objects from multiple threads in Go without using channels.
twic
on June 18, 2019
|
root
|
parent
[–]
The Rust compiler won't let you do that either!
foldr
on June 18, 2019
|
root
|
parent
[–]
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: