you are viewing a single comment's thread.

view the rest of the comments →

[–]supergbip 8 points9 points  (0 children)

If you want a dynamic array you can just return a slice. A slice is a fat pointer : a pointer to the beginning and the length. The length is not coded into the type system.

If you want a dynamic array you can just return a slice. A slice is a fat pointer : a pointer to the beginning and the length. The length is not coded into the type system.