|
|
|
|
|
by nickik
4525 days ago
|
|
One might say that passing raw pointers around is against the point of CSP. As I understand it go does exactly what the Singularity OS does, pass over ownership instead of copy or raw pointer. This seams more idimotic, and more CSPish to me. (Passing around pointer/references to immutables is of course ok) |
|
I may misunderstand what you're talking about, but as far as I know Go more or less passes a raw pointer (or a copy thereof) over pointer channels. It has no concept of ownership, and the pointer (and pointee) on the sender side remains valid: http://play.golang.org/p/E1bqrVFxZ6