HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
osigurdson
23 days ago
|
parent
|
context
|
favorite
| on:
Go Concurrency Distilled
A goroutins shares memory so you can just share variables if you want. It is basically the same as any other language in this regard.
treyd
23 days ago
|
next
[–]
It's also just as easy to
incorrectly
share memory and cause race conditions. There's no protection against it and it violates memory safety.
osigurdson
23 days ago
|
parent
|
next
[–]
For sure. The parent comment was merely asking if it could be done without channels or mutex, not if it was a good idea or not. Of course sometimes it is indeed the right thing to do.
osigurdson
23 days ago
|
prev
[–]
Haha! Laughing at my own comment: "a goroutins shares memory". The iPhone keyboard wins again.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search: