Go array =~ C++ std::array
Go slice =~ C++ std::vector&

On May 24, 2015 12:02:54 PM CDT, "Aram Hăvărneanu" <ara...@mgk.ro> wrote:
>On Sun, May 24, 2015 at 5:55 PM, erik quanstrom <quans...@quanstro.net>
>wrote:
>> and implies dynamic allocation of the slice, i'm guessing.
>
>Don't guess. Please read the links I provided, they explain all this.
>Arrays in Go are not like arrays in C and Pascal, slices are more
>close. Go arrays are values, so copying one is an O(n) operation.
>
>-- 
>Aram Hăvărneanu

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to