From mboxrd@z Thu Jan 1 00:00:00 1970 User-Agent: K-9 Mail for Android In-Reply-To: <869357D2-F7D2-457C-AC03-0E29870328A6@bitblocks.com> References: <0de965508a7a944ef6bf0c0af1082091@brasstown.quanstro.net> <869357D2-F7D2-457C-AC03-0E29870328A6@bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: Ryan Gonzalez Date: Sun, 24 May 2015 14:36:42 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>, Bakul Shah Message-ID: Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] ot: pascal rides again? Topicbox-Message-UUID: 552fa0bc-ead9-11e9-9d60-3106f5b1d025 On May 24, 2015 2:00:05 PM CDT, Bakul Shah wrote: > > >On May 24, 2015, at 8:55 AM, erik quanstrom >wrote: > >>> Uhm I might be mistaken, but I guess [8192]byte is an array, and >[]byte are >>> slices - therefore they are different types. >>=20 >> yes, exactly. i suppose this implies that different size arrays are >not type compatable >> (yea pascal). also the fu :=3D bar[:] looks a lot like the tedious >casting from c, and implies >> dynamic allocation of the slice, i'm guessing. >>=20 >> - erik >>=20 >Later pascal standards supported conformant array parameters. And >several extended pascal compilers provided dynamic arrays. > >In Go multidimensional arrays are not well supported. Try this: > >var x [5][6]int >y :=3D x[:2][:3] >fmt.Printf("%v\n", y) > >It is what it is. Get used to it if you want/have to use Go! Apart from >its concurrency features it is a pretty boring language but it is >surprisingly easy to write code in it. Seriously. I like Nim better. And K... --=20 Sent from my Android device with K-9 Mail. Please excuse my brevity.