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."
Thread beginning with comment 512412
To view parent comment, click here.
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?"
Member since:

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

go fun()

c<-"send a string"

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

jburnett Member since:

Ahh, now I get it. Some of Go is based on python syntax. I guess that is why they named arrays slices. Actually, it almost looks like somebody took Python, stripped out the OO part, added data typing, and said lets compile this. Which is really cool.

Of course I'm basing this on about 30 minutes spent reading Python docs and about the same time with Go docs. Despite 25 years of coding experience in everything from assembly to ruby, I never learned Python. One of the very few popular languages I have just never needed. Maybe it is time to learn.

Reply Parent Score: 1