←back to thread

159 points mpweiher | 3 comments | | HN request time: 0.625s | source
Show context
noor_z ◴[] No.43672309[source]
It's very possible I'm just bad at Go but it seems to me that the result of trying to adhere to CSP in my own Go projects is the increasing use of dedicated lifecycle management channels like `shutdownChan`. Time will tell how burdensome this pattern proves to be but it's definitely not trivial to maintain now.
replies(2): >>43672380 #>>43676064 #
1. sapiogram ◴[] No.43672380[source]
You're not bad at Go, literally everyone I know who has tried to do this has concluded it's a bad idea. Just stop using channels, there's a nice language hidden underneath the CSP cruft.
replies(1): >>43672424 #
2. vrosas ◴[] No.43672424[source]
I've found the smartest go engineer in the room is usually the one NOT using channels.
replies(1): >>43699713 #
3. pdimitar ◴[] No.43699713[source]
Okay, but what are the viable alternatives?