4 ms·
Someone on the reddit thread argued that because it is CSP you do not need this. The idea being when you send your object down the channel you lose ownership o
by sausagefeet 16y ago
Someone on the reddit thread argued that because it is CSP you do not need this. The idea being when you send your object down the channel you lose ownership of it. I don't know enough about the Go implementation to know if this is true or not.
- nickik 16y agoNormaly thats right but you can pass pointers on a channel you share mutible state. Listen to the go talk at Emergin Languages Camp. Rich Hickey asks about that in the end.
- sausagefeet 16y agoIs there any point where you would want to pass a pointer but NOT because you want mutable state, simply because it's more efficient or something?
- jpr 16y agoWell, pointers have fixed size, random structures may be arbitrarily big and involve a crapload of copying.