3 ms·
> As I understand it go does exactly what the Singularity OS does, pass over ownership instead of copy or raw pointer. I may misunderstand what you're talking
by masklinn 13y ago
> As I understand it go does exactly what the Singularity OS does, pass over ownership instead of copy or raw pointer.
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 http://play.golang.org/p/E1bqrVFxZ6
- deleted 13y ago[deleted]
- nickik 13y agoI mixed up go and rust. Go send around raw pointers.