News for hackers. Stuff that matters.
Re:Go at Google: Language Design in the Service of Software ... by drivebyacct2 on Tuesday December 04, 2012 @11:35PM (#4874899)

    int *i, j;
is more than a good enough reason for me. Makes interviews interesting, though: "Why are you repeatedly writing your variables and function parameters incorrectly?"
Re:Go at Google: Language Design in the Service of Software ... by paupino_masano on Wednesday December 05, 2012 @12:40AM (#4875070)
Interesting example. I'm still a newbie to Go, so would that be written as:

  var i int*
  var j int
My apologies if this seems like a simple question: I haven't played with the language enough to know :)

[EDIT: Sorry, I didn't realize how to format code!]

Re:Go at Google: Language Design in the Service of Software ... by Jabbles on Wednesday December 05, 2012 @05:19AM (#4875671)
The asterisk goes before the type for pointers:

    var i *int
Unlike C, values are always initialized in Go.

http://play.golang.org/p/8tAzKyES2I