Linked by Thom Holwerda on Wed 28th Mar 2012 19:22 UTC
General Development "Today marks a major milestone in the development of the Go programming language. We're announcing Go version 1, or Go 1 for short, which defines a language and a set of core libraries to provide a stable foundation for creating reliable products, projects, and publications. Go 1 is the first release of Go that is available in supported binary distributions. They are available for Linux, FreeBSD, Mac OS X and, we are thrilled to announce, Windows."
Permalink for comment 512412
To read all comments associated with this story, please click here.
RE[3]: Am I missing something?
by satsujinka on Fri 30th Mar 2012 03:30 UTC in reply to "RE[2]: Am I missing something?"
satsujinka
Member since:
2010-03-11

Please keep in mind that I never said it would be complicated in C. I said it would look bad.

goroutines:
go fun()

channels:
c<-"send a string"
receive<-c

these look much nicer than your C example, in my opinion. Similarly, I like the re-slicing syntax (I believe python has a similar syntax.)
It is true C function declarations are simpler, however, you do get used to Go really quickly. Go is simpler to parse (pure left to right with no look ahead) and function declarations are one thing that needed to change.
Btw, if you have two *int variables you can do this (including multiple returns):

func myFunc(x,y *int) (int, error) {}

Reply Parent Score: 1