9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ryan Gonzalez <rymg19@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>,
	"Aram Hăvărneanu" <aram.h@mgk.ro>
Subject: Re: [9fans] ot: pascal rides again?
Date: Sun, 24 May 2015 12:53:12 -0500	[thread overview]
Message-ID: <DA03F494-36E2-40BF-BD22-D850FF124160@gmail.com> (raw)
In-Reply-To: <CAEAzY39KEsf4vzOdXvL0=3JBkabEtMA1Kf9AM9rDLLiR6=nTSw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

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


On May 24, 2015 12:02:54 PM CDT, "Aram Hăvărneanu" <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 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.

[-- Attachment #2: Type: text/html, Size: 1001 bytes --]

  reply	other threads:[~2015-05-24 17:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-23 15:53 erik quanstrom
2015-05-23 16:17 ` Eduardo Alvarez
2015-05-23 16:26   ` Aram Hăvărneanu
2015-05-23 18:14 ` C Cirello
2015-05-23 18:25   ` Ryan Gonzalez
2015-05-24 15:55   ` erik quanstrom
2015-05-24 16:19     ` Devon H. O'Dell
2015-05-24 17:02     ` Aram Hăvărneanu
2015-05-24 17:53       ` Ryan Gonzalez [this message]
2015-05-24 17:50     ` Ryan Gonzalez
2015-05-24 19:00     ` Bakul Shah
2015-05-24 19:36       ` Ryan Gonzalez
2015-05-24 21:25     ` minux
2015-05-25  1:26       ` C Cirello
2015-05-25  5:39       ` lucio
2015-05-25  7:59       ` Bakul Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DA03F494-36E2-40BF-BD22-D850FF124160@gmail.com \
    --to=rymg19@gmail.com \
    --cc=9fans@9fans.net \
    --cc=aram.h@mgk.ro \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).