A site devoted mostly to everything related to Information Technology under the sun - among other things.

Wednesday, July 11, 2012

Go Programming Language

Go is an open source project developed by a team at Google.  See the example of Fibonacci Closure below:

package main
// fib returns a function that returns
// successive Fibonacci numbers.
func fib() func() int {
 a, b := 0, 1
 return func() int {
  a, b = b, a+b
  return a
 }
}


func main() {
 f := fib()
 // Function calls are evaluated left-to-right.
 println(f(), f(), f(), f(), f())
}

Go is available @ http://golang.org/#
There are 2 books on it:
and

Version 1.0 of the language was released in late March 2012 and binary distributions are available for Linux, FreeBSD, OS X and Windows. The language is open source and BSD-licensed.

No comments:

About Me

My photo
I am a senior software developer working for General Motors Corporation.. I am interested in intelligent computing and scientific computing. I am passionate about computers as enablers for human imagination. The contents of this site are not in any way, shape, or form endorsed, approved, or otherwise authorized by HP, its subsidiaries, or its officers and shareholders.

Blog Archive