Re: [9fans] ot: pascal rides again?

2015-05-25 Thread Bakul Shah
On Sun, 24 May 2015 17:25:54 EDT minux minux...@gmail.com wrote: On Sun, May 24, 2015 at 11:55 AM, erik quanstrom quans...@quanstro.net wrote: Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. yes, exactly.

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread Ryan Gonzalez
On May 24, 2015 2:00:05 PM CDT, Bakul Shah ba...@bitblocks.com wrote: On May 24, 2015, at 8:55 AM, erik quanstrom quans...@quanstro.net wrote: Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. yes, exactly. i suppose

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread Aram Hăvărneanu
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

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread Bakul Shah
On May 24, 2015, at 8:55 AM, erik quanstrom quans...@quanstro.net wrote: Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. yes, exactly. i suppose this implies that different size arrays are not type compatable (yea

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread Ryan Gonzalez
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

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread Devon H. O'Dell
http://blog.golang.org/go-slices-usage-and-internals 2015-05-24 8:55 GMT-07:00 erik quanstrom quans...@quanstro.net: Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. yes, exactly. i suppose this implies that different

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread lucio
(i.e. you don't need ~65 pages of style guide just to tell you how to write acceptable code.) I think it's wasteful to defend Go. Let history do that... Lucio.

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread C Cirello
2015-05-24 23:25 GMT+02:00 minux minux...@gmail.com: Regarding the boring comment, I agree to some extent. There isn't many fancy features that other languages have, but that's exactly the advantage of Go, and it's the price to pay when you want readability. (i.e. you don't need ~65 pages of

[9fans] ot: pascal rides again?

2015-05-23 Thread erik quanstrom
well, at least dennis wrote why pascal is not my favorite programming language. from go build ./cat.go:36: cannot use data (type [8192]byte) as type []byte in argument to cat what? perhaps i'm missing something about the language, but it sure seems ironic. - erik

Re: [9fans] ot: pascal rides again?

2015-05-23 Thread Eduardo Alvarez
I thought the author was Brian Kernighan? http://www.lysator.liu.se/c/bwk/index.html On Sat, May 23, 2015 at 12:53 PM, erik quanstrom quans...@quanstro.net wrote: well, at least dennis wrote why pascal is not my favorite programming language. from go build ./cat.go:36: cannot use

Re: [9fans] ot: pascal rides again?

2015-05-23 Thread Aram Hăvărneanu
http://blog.golang.org/slices http://blog.golang.org/go-slices-usage-and-internals -- Aram Hăvărneanu

Re: [9fans] ot: pascal rides again?

2015-05-23 Thread C Cirello
Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. - CC 2015-05-23 17:53 GMT+02:00 erik quanstrom quans...@quanstro.net: well, at least dennis wrote why pascal is not my favorite programming language. from go

Re: [9fans] ot: pascal rides again?

2015-05-23 Thread Ryan Gonzalez
I read the Go docs *once*, but I'm pretty sure you're right. I think to make a slice out of an array, you'd do something like the_array[:]. All to say why I don't like Go. :) On May 23, 2015 1:14:55 PM CDT, C Cirello uldericofi...@gmail.com wrote: Uhm I might be mistaken, but I guess [8192]byte