News for hackers. Stuff that matters.
Re:Git's list of banned C functions by int_19h on Friday March 05, 2021 @07:02AM (#26355880)
If I remember correctly, slices in Go also have ownership semantics, in a sense that so long as any slice exists, the array is kept alive by the garbage collector.

Or do you mean value vs reference semantics? In that case, I think C pointers are simpler as a fundamental concept, and slices are best defined in terms of pointer + size.

There are no comments on this comment yet.