Slide 13
Slide 13 text
Variables
package main
import "fmt"
var x, y, z int
func main() {
var c, python, java = true, false, "no!"
haskell, clojure, sml := true, true, true
fmt.Println(x,y,z,c,python, java, haskell, clojure, sml)
}
13
using := construct, we can omit var keyword and type! “short-form”
type can be omitted, since compiler
can guess it from the value expression