From mboxrd@z Thu Jan 1 00:00:00 1970 User-Agent: K-9 Mail for Android In-Reply-To: References: <0de965508a7a944ef6bf0c0af1082091@brasstown.quanstro.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----QBDPZ3FKVJYN3W63L61MC8MC7JVMJA" From: Ryan Gonzalez Date: Sun, 24 May 2015 12:53:12 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>, =?UTF-8?Q?Aram_H=C4=83v=C4=83rneanu?= Message-ID: Content-Transfer-Encoding: 7bit Subject: Re: [9fans] ot: pascal rides again? Topicbox-Message-UUID: 5519961e-ead9-11e9-9d60-3106f5b1d025 ------QBDPZ3FKVJYN3W63L61MC8MC7JVMJA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Go array =3D~ C++ std::array Go slice =3D~ C++ std::vector& On May 24, 2015 12:02:54 PM CDT, "Aram H=C4=83v=C4=83rneanu" wrote: >On Sun, May 24, 2015 at 5:55 PM, erik quanstrom >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. > >--=20 >Aram H=C4=83v=C4=83rneanu --=20 Sent from my Android device with K-9 Mail. Please excuse my brevity. ------QBDPZ3FKVJYN3W63L61MC8MC7JVMJA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Go array =3D~ C++ std::array
Go slice =3D~ C++ std::vector&


On May 24, 2015 12:02:54 PM CDT, "= ;Aram H=C4=83v=C4=83rneanu" <aram.h@mgk.ro> wrote:
On Sun, May 24, 2015 at 5:55 PM, erik quanstrom <=
;quanstro@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 Pas= cal, slices are more
close. Go arrays are values, so copying one is = an O(n) operation.

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