News for hackers. Stuff that matters.
Re:The language I wish Go was by sausagefeet on Thursday October 21, 2010 @09:33AM (#1815278)
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.
Re:The language I wish Go was by nickik on Thursday October 21, 2010 @10:20AM (#1815455)
Normaly 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.

Re:The language I wish Go was by sausagefeet on Thursday October 21, 2010 @10:44AM (#1815588)
Is 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?
Re:The language I wish Go was by jpr on Thursday October 21, 2010 @01:54PM (#1816635)
Well, pointers have fixed size, random structures may be arbitrarily big and involve a crapload of copying.